mirror of
https://github.com/devbridge/jQuery-Autocomplete.git
synced 2024-11-25 14:17:45 +00:00
added afterRender callback
This commit is contained in:
parent
2c8058a15e
commit
dd3b9558bb
@ -643,6 +643,7 @@
|
|||||||
container = $(that.suggestionsContainer),
|
container = $(that.suggestionsContainer),
|
||||||
noSuggestionsContainer = $(that.noSuggestionsContainer),
|
noSuggestionsContainer = $(that.noSuggestionsContainer),
|
||||||
beforeRender = options.beforeRender,
|
beforeRender = options.beforeRender,
|
||||||
|
afterRender = options.afterRender,
|
||||||
html = '',
|
html = '',
|
||||||
category,
|
category,
|
||||||
formatGroup = function (suggestion, index) {
|
formatGroup = function (suggestion, index) {
|
||||||
@ -683,6 +684,10 @@
|
|||||||
that.fixPosition();
|
that.fixPosition();
|
||||||
container.show();
|
container.show();
|
||||||
|
|
||||||
|
if ($.isFunction(afterRender)) {
|
||||||
|
afterRender.call(that.element, container);
|
||||||
|
}
|
||||||
|
|
||||||
// Select first value by default:
|
// Select first value by default:
|
||||||
if (options.autoSelectFirst) {
|
if (options.autoSelectFirst) {
|
||||||
that.selectedIndex = 0;
|
that.selectedIndex = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user