diff options
author | Scott González <scott.gonzalez@gmail.com> | 2011-03-22 14:07:49 -0400 |
---|---|---|
committer | Scott González <scott.gonzalez@gmail.com> | 2011-03-22 14:07:49 -0400 |
commit | e7991e33f3c5d20d6efdb18654859175ef5cac68 (patch) | |
tree | 882f97c0b9a10d2f6cdb60e65a081aed8b4975e8 /ui | |
parent | de5a98e7bcb841d3b5304dd085ad300f4848a220 (diff) | |
download | jquery-ui-e7991e33f3c5d20d6efdb18654859175ef5cac68.tar.gz jquery-ui-e7991e33f3c5d20d6efdb18654859175ef5cac68.zip |
Autocomplete: Added response event. Fixes #6777 - Autocomplete callback when search is complete.
Diffstat (limited to 'ui')
-rw-r--r-- | ui/jquery.ui.autocomplete.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ui/jquery.ui.autocomplete.js b/ui/jquery.ui.autocomplete.js index ee6eb659f..ca06fff65 100644 --- a/ui/jquery.ui.autocomplete.js +++ b/ui/jquery.ui.autocomplete.js @@ -307,8 +307,11 @@ $.widget( "ui.autocomplete", { }, _response: function( content ) { - if ( !this.options.disabled && content && content.length ) { + if ( content ) { content = this._normalize( content ); + } + this._trigger( "response", null, { content: content } ); + if ( !this.options.disabled && content && content.length ) { this._suggest( content ); this._trigger( "open" ); } else { |