diff options
Diffstat (limited to 'demos/autocomplete')
-rw-r--r-- | demos/autocomplete/combobox.html | 8 | ||||
-rw-r--r-- | demos/autocomplete/multiple-remote.html | 2 | ||||
-rw-r--r-- | demos/autocomplete/multiple.html | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index f8898094d..76d792470 100644 --- a/demos/autocomplete/combobox.html +++ b/demos/autocomplete/combobox.html @@ -92,11 +92,11 @@ }) .removeClass( "ui-corner-all" ) .addClass( "custom-combobox-toggle ui-corner-right" ) - .mousedown(function() { + .on( "mousedown", function() { wasOpen = input.autocomplete( "widget" ).is( ":visible" ); }) - .click(function() { - input.focus(); + .on( "click", function() { + input.trigger( "focus" ); // Close if already visible if ( wasOpen ) { @@ -165,7 +165,7 @@ $(function() { $( "#combobox" ).combobox(); - $( "#toggle" ).click(function() { + $( "#toggle" ).on( "click", function() { $( "#combobox" ).toggle(); }); }); diff --git a/demos/autocomplete/multiple-remote.html b/demos/autocomplete/multiple-remote.html index 72c001754..45f319865 100644 --- a/demos/autocomplete/multiple-remote.html +++ b/demos/autocomplete/multiple-remote.html @@ -27,7 +27,7 @@ $( "#birds" ) // don't navigate away from the field on tab when selecting an item - .bind( "keydown", function( event ) { + .on( "keydown", function( event ) { if ( event.keyCode === $.ui.keyCode.TAB && $( this ).autocomplete( "instance" ).menu.active ) { event.preventDefault(); diff --git a/demos/autocomplete/multiple.html b/demos/autocomplete/multiple.html index 63d379067..1bd70f228 100644 --- a/demos/autocomplete/multiple.html +++ b/demos/autocomplete/multiple.html @@ -46,7 +46,7 @@ $( "#tags" ) // don't navigate away from the field on tab when selecting an item - .bind( "keydown", function( event ) { + .on( "keydown", function( event ) { if ( event.keyCode === $.ui.keyCode.TAB && $( this ).autocomplete( "instance" ).menu.active ) { event.preventDefault(); |