mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-14 09:14:09 +00:00
added onHide callback option
This commit is contained in:
parent
41f2c3fd95
commit
5d5513f0f2
@ -593,7 +593,14 @@
|
|||||||
},
|
},
|
||||||
|
|
||||||
hide: function () {
|
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.visible = false;
|
||||||
that.selectedIndex = -1;
|
that.selectedIndex = -1;
|
||||||
$(that.suggestionsContainer).hide();
|
$(that.suggestionsContainer).hide();
|
||||||
|
Loading…
Reference in New Issue
Block a user