autocompleteselect Does Not Appear to Work

38 views
Skip to first unread message

Chad Files

unread,
Oct 2, 2014, 11:40:20 AM10/2/14
to django-s...@googlegroups.com
I added a method in my project that binds to autocompleteselect and nothing worked. To simplify things I downloaded the latest django-selectable and tried it with the example and the events never fired. I added the following code to example/core/templates/base.html

58     <script>
59          $( '#id_multicomboboxselect_0' ).on( "autocompleteselect", function( event, ui ) { alert("on")} );
60          $( '#id_multicomboboxselect_0').bind('autocompleteselect', function(event, ui) { alert("bind") });
61          $( '#id_combobox' ).on( "autocompleteselect", function( event, ui ) { alert("on")} );
62          $( '#id_combobox').bind('autocompleteselect', function(event, ui) { alert("bind") });
63     </script>


Can somebody tell me what I am doing wrong? Thanks!

Mark Lavin

unread,
Oct 2, 2014, 11:56:32 AM10/2/14
to django-s...@googlegroups.com
The names of these events where changed from autocomplete* to djselectable* when the plugin was refactored in v0.7 http://django-selectable.readthedocs.org/en/v0.8.X/releases.html#id1

--
You received this message because you are subscribed to the Google Groups "django-selectable" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-selecta...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages