From 6217c1a3be532dd042792d030ec08870999978e9 Mon Sep 17 00:00:00 2001 From: Steve Howell Date: Thu, 25 Jul 2013 15:52:59 -0400 Subject: [PATCH] [third] Mouse-enable naturalSearch option in typeahead. When hover over a typeahead menu item, the semantics have always been to make it active, and now we also respect the naturalSearch option there, which will set the text of the search box to the suggestion immediately upon hover. (imported from commit 02318d3d830e7e28d638efee0ef27023a73f52f7) --- zephyr/static/third/bootstrap/js/bootstrap.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zephyr/static/third/bootstrap/js/bootstrap.js b/zephyr/static/third/bootstrap/js/bootstrap.js index 4cbd97f2d9..26b9a7cae2 100644 --- a/zephyr/static/third/bootstrap/js/bootstrap.js +++ b/zephyr/static/third/bootstrap/js/bootstrap.js @@ -2100,6 +2100,10 @@ , mouseenter: function (e) { this.$menu.find('.active').removeClass('active') $(e.currentTarget).addClass('active') + + if (this.options.naturalSearch) { + this.set_value(); + } } }