{"action":"created","issue":{"url":"https://api.github.com/repos/crucialfelix/django-ajax-selects/issues/107","labels_url":"https://api.github.com/repos/crucialfelix/django-ajax-selects/issues/107/labels{/name}","comments_url":"https://api.github.com/repos/crucialfelix/django-ajax-selects/issues/107/comments","events_url":"https://api.github.com/repos/crucialfelix/django-ajax-selects/issues/107/events","html_url":"https://github.com/crucialfelix/django-ajax-selects/issues/107","id":59193976,"number":107,"title":"\"Uncaught TypeError: Cannot read property 'autocomplete' of undefined\"","user":{"login":"gudddu","id":1304877,"avatar_url":"https://avatars.githubusercontent.com/u/1304877?v=3","gravatar_id":"","url":"https://api.github.com/users/gudddu","html_url":"https://github.com/gudddu","followers_url":"https://api.github.com/users/gudddu/followers","following_url":"https://api.github.com/users/gudddu/following{/other_user}","gists_url":"https://api.github.com/users/gudddu/gists{/gist_id}","starred_url":"https://api.github.com/users/gudddu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gudddu/subscriptions","organizations_url":"https://api.github.com/users/gudddu/orgs","repos_url":"https://api.github.com/users/gudddu/repos","events_url":"https://api.github.com/users/gudddu/events{/privacy}","received_events_url":"https://api.github.com/users/gudddu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-27T05:51:06Z","updated_at":"2015-03-10T12:05:46Z","closed_at":null,"body":"Dear All,\r\n\r\nI am getting an error upon using django_ajax_select. This happens as soon as the page is loaded and the error i seen in chrome Javascript console.\r\n\r\nThe error is indicated to be on this line of ajax_select.js\r\n\r\nvar proto = $.ui.autocomplete.prototype,\r\n      initSource = proto._initSource;\r\n\r\nThe error is \"Uncaught TypeError: Cannot read property 'autocomplete' of undefined\"\r\n\r\nI am using jquery-1.11.2.min.js and I have also includes the js that come with django_ajax_select viz\r\nbootstrap.js and ajax_select.js\r\n\r\nPlease help. Below is the chrome screenshot.\r\n\r\n![image](https://cloud.githubusercontent.com/assets/1304877/6408055/0c08b6cc-be23-11e4-9b7a-81a52cb6054d.png)\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/crucialfelix/django-ajax-selects/issues/comments/78040872","html_url":"https://github.com/crucialfelix/django-ajax-selects/issues/107#issuecomment-78040872","issue_url":"https://api.github.com/repos/crucialfelix/django-ajax-selects/issues/107","id":78040872,"user":{"login":"raushanraj","id":3590763,"avatar_url":"https://avatars.githubusercontent.com/u/3590763?v=3","gravatar_id":"","url":"https://api.github.com/users/raushanraj","html_url":"https://github.com/raushanraj","followers_url":"https://api.github.com/users/raushanraj/followers","following_url":"https://api.github.com/users/raushanraj/following{/other_user}","gists_url":"https://api.github.com/users/raushanraj/gists{/gist_id}","starred_url":"https://api.github.com/users/raushanraj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raushanraj/subscriptions","organizations_url":"https://api.github.com/users/raushanraj/orgs","repos_url":"https://api.github.com/users/raushanraj/repos","events_url":"https://api.github.com/users/raushanraj/events{/privacy}","received_events_url":"https://api.github.com/users/raushanraj/received_events","type":"User","site_admin":false},"created_at":"2015-03-10T12:05:46Z","updated_at":"2015-03-10T12:05:46Z","body":"This happens because of ordering of js files in your template:\r\nCorrect Order of Js files:\r\n   1.  <script src=\"{% static 'ajax_select/js/bootstrap.js'%}\"></script>\r\n    2 .  <script src=\"{%static 'ajax_select/js/ajax_select.js' %}\"></script>\r\n   "}}