diff options
Diffstat (limited to 'data/stuff/js')
-rw-r--r-- | data/stuff/js/search-field.js | 7 |
1 files changed, 5 insertions, 2 deletions
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) { |