diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-07-16 00:02:39 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-07-16 00:02:39 -0600 |
commit | cace8158ade3602528dca25bc70e2f57779c03d3 (patch) | |
tree | 1ca4a9346df8520f1130d88b8747a568a33b6aa6 /sitestatic/bootstrap-typeahead.js | |
parent | d84cbb8b92796e7336679e566bafe407d9271b7a (diff) |
run `make clean && make`
Diffstat (limited to 'sitestatic/bootstrap-typeahead.js')
-rw-r--r-- | sitestatic/bootstrap-typeahead.js | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sitestatic/bootstrap-typeahead.js b/sitestatic/bootstrap-typeahead.js index 3d355ae4..c2ccdea2 100644 --- a/sitestatic/bootstrap-typeahead.js +++ b/sitestatic/bootstrap-typeahead.js @@ -45,11 +45,9 @@ , select: function () { var val = this.$menu.find('.active').attr('data-value') - if (val) { - this.$element - .val(this.updater(val)) - .change() - } + this.$element + .val(this.updater(val)) + .change() return this.hide() } @@ -143,6 +141,7 @@ return i[0] }) + items.first().addClass('active') this.$menu.html(items) return this } |