diff options
author | Paul Duncan <pabs@pablotron.org> | 2016-04-02 03:03:53 -0400 |
---|---|---|
committer | Paul Duncan <pabs@pablotron.org> | 2016-04-02 03:03:53 -0400 |
commit | dde167d672a151c026307859551bf69f439ab602 (patch) | |
tree | 5d39b095c9e6d4996c5bd40bc68f72a85f62c955 /data/stuff/js | |
parent | 25db8016dadd10c800419edeafdc3fcff9929f4f (diff) | |
download | old-guff-dde167d672a151c026307859551bf69f439ab602.tar.bz2 old-guff-dde167d672a151c026307859551bf69f439ab602.zip |
fix search delay
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) { |