aboutsummaryrefslogtreecommitdiffstats
path: root/demos/autocomplete/combobox.html
diff options
context:
space:
mode:
Diffstat (limited to 'demos/autocomplete/combobox.html')
-rw-r--r--demos/autocomplete/combobox.html8
1 files changed, 4 insertions, 4 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();
});
});