aboutsummaryrefslogtreecommitdiff
path: root/js/bootstrap-typeahead.js
diff options
context:
space:
mode:
authorPete Hopkins <[email protected]>2012-01-30 12:13:18 -0500
committerPete Hopkins <[email protected]>2012-02-22 14:19:55 -0500
commit70fecd111566eec3136457afb4143d0950c455b5 (patch)
treed6422f27c3418d61d14acf02e184eb76dbecd89e /js/bootstrap-typeahead.js
parent80d03e143ce3041e9c3ec63db439ee7738679573 (diff)
downloadbootstrap-70fecd111566eec3136457afb4143d0950c455b5.tar.xz
bootstrap-70fecd111566eec3136457afb4143d0950c455b5.zip
Fires change event when element is selected from menu
Diffstat (limited to 'js/bootstrap-typeahead.js')
-rw-r--r--js/bootstrap-typeahead.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/bootstrap-typeahead.js b/js/bootstrap-typeahead.js
index c5776df13..df1487bf8 100644
--- a/js/bootstrap-typeahead.js
+++ b/js/bootstrap-typeahead.js
@@ -40,6 +40,7 @@
, select: function () {
var val = this.$menu.find('.active').attr('data-value')
this.$element.val(val)
+ this.$element.change();
return this.hide()
}