diff options
Diffstat (limited to 'demos/autocomplete/combobox.html')
-rw-r--r-- | demos/autocomplete/combobox.html | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/demos/autocomplete/combobox.html b/demos/autocomplete/combobox.html index f89f260eb..22f34aa17 100644 --- a/demos/autocomplete/combobox.html +++ b/demos/autocomplete/combobox.html @@ -41,6 +41,7 @@ .addClass( "ui-combobox" ) .insertAfter( this.element ); + this.element.hide(); this._createAutocomplete(); this._createShowAllButton(); }, @@ -76,7 +77,8 @@ }, _createShowAllButton: function() { - var wasOpen = false; + var input = this.input, + wasOpen = false; $( "<a>" ) .attr( "tabIndex", -1 ) @@ -152,7 +154,7 @@ this._delay(function() { this.input.tooltip( "close" ).attr( "title", "" ); }, 2500 ); - this.input.data( "ui-autocomplete" ).term = ""; + this.input.autocomplete( "instance" ).term = ""; }, _destroy: function() { |