summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
Diffstat (limited to 'share')
-rw-r--r--share/www/script/jquery.suggest.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/share/www/script/jquery.suggest.js b/share/www/script/jquery.suggest.js
index 54217390..3a9d0ead 100644
--- a/share/www/script/jquery.suggest.js
+++ b/share/www/script/jquery.suggest.js
@@ -102,6 +102,9 @@
if (sel) {
prevVal = sel.data("value");
input.val(prevVal);
+ if (options.select) {
+ options.select.apply(elem, [prevVal]);
+ }
dropdown.hide();
}
if (timer) clearTimeout(timer)
@@ -133,7 +136,8 @@
callback: callback,
delay: 100,
dropdownClass: "suggest-dropdown",
- minChars: 1
+ minChars: 1,
+ select: null
}, options || {});
return this.each(function() {
suggest(this, options);