mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-29 00:06:36 +00:00
added onHide callback option
This commit is contained in:
parent
41f2c3fd95
commit
5d5513f0f2
@ -593,7 +593,14 @@
|
||||
},
|
||||
|
||||
hide: function () {
|
||||
var that = this;
|
||||
var that = this,
|
||||
container = $(that.suggestionsContainer);
|
||||
|
||||
if ($.isFunction(this.options.onHide) && that.visible) {
|
||||
|
||||
this.options.onHide.call(that.element, container);
|
||||
}
|
||||
|
||||
that.visible = false;
|
||||
that.selectedIndex = -1;
|
||||
$(that.suggestionsContainer).hide();
|
||||
|
Loading…
Reference in New Issue
Block a user