From dde167d672a151c026307859551bf69f439ab602 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 2 Apr 2016 03:03:53 -0400 Subject: fix search delay --- data/stuff/js/search-field.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'data/stuff') diff --git a/data/stuff/js/search-field.js b/data/stuff/js/search-field.js index 42bec10..76ff69f 100644 --- a/data/stuff/js/search-field.js +++ b/data/stuff/js/search-field.js @@ -5,8 +5,8 @@ jQuery(function($) { var ival = el.data('search-interval'); if (ival) { - // clear interval - clearInterval(ival); + // clear timeout + clearTimeout(ival); el.data('search-interval', null); } } @@ -49,6 +49,9 @@ jQuery(function($) { // trigger search trigger_search(field, ''); } + + // stop event + return false; }); $('.panel-heading.search-toggle input').keydown(function(ev) { -- cgit v1.2.3