diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-07-14 15:05:09 -0600 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-07-14 15:05:09 -0600 |
commit | 7f7598cf43e6b630ac21bc9a435773773213ea60 (patch) | |
tree | 4d27841a43a49e3844f6dbb0201c811b82e69873 /sitestatic/bootstrap-typeahead.js | |
parent | 5a09edf67da7c92b5a396b80f01ae3c1fec48f6e (diff) |
run `make` to update js files
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 } |