From 250860b6dd800efa34d1246ccef104fd3eab5a0a Mon Sep 17 00:00:00 2001 From: Tyron Date: Sat, 15 Jan 2011 12:28:16 -0200 Subject: [PATCH 1/3] Triggering the event of blur, so the button to "show all items" behave correctly. --- demos/autocomplete/combobox.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index 598a7cc2740..3c71d85a601 100644 --- a/demos/autocomplete/combobox.html +++ b/demos/autocomplete/combobox.html @@ -112,6 +112,9 @@ return; } + //unselects the button, so it behaves correctly + $(this).trigger('blur'); + // pass empty string as value to search for, displaying all results input.autocomplete( "search", "" ); input.focus(); From 32b3696652e4fe6c96efa484fbec4d4b34dc4a02 Mon Sep 17 00:00:00 2001 From: Tyron Date: Sun, 16 Jan 2011 15:55:02 -0200 Subject: [PATCH 2/3] Correction to standard format. --- demos/autocomplete/combobox.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index 3c71d85a601..d2677ca57ab 100644 --- a/demos/autocomplete/combobox.html +++ b/demos/autocomplete/combobox.html @@ -112,8 +112,8 @@ return; } - //unselects the button, so it behaves correctly - $(this).trigger('blur'); + // unselects the button, so it behaves correctly + $( this ).blur(); // pass empty string as value to search for, displaying all results input.autocomplete( "search", "" ); From 6dc3db567bcf95bfa5dde745b5d5c2a4e1788a47 Mon Sep 17 00:00:00 2001 From: Tyron Date: Mon, 17 Jan 2011 19:02:47 -0200 Subject: [PATCH 3/3] Changing the item in the input will trigger the change event of the original select. --- demos/autocomplete/combobox.html | 3 +++ 1 file changed, 3 insertions(+) diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index d2677ca57ab..5e4282bc8ff 100644 --- a/demos/autocomplete/combobox.html +++ b/demos/autocomplete/combobox.html @@ -81,6 +81,9 @@ return false; } } + + // triggers the change event in the select, as it can hold some events + select.change(); } }) .addClass( "ui-widget ui-widget-content ui-corner-left" );