From 7f7598cf43e6b630ac21bc9a435773773213ea60 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Sun, 14 Jul 2013 15:05:09 -0600 Subject: run `make` to update js files --- sitestatic/bootstrap-typeahead.js | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'sitestatic/bootstrap-typeahead.js') 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 } -- cgit v1.2.3-2-g168b