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