aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-04-02 03:03:53 -0400
committerPaul Duncan <pabs@pablotron.org>2016-04-02 03:03:53 -0400
commitdde167d672a151c026307859551bf69f439ab602 (patch)
tree5d39b095c9e6d4996c5bd40bc68f72a85f62c955 /data
parent25db8016dadd10c800419edeafdc3fcff9929f4f (diff)
downloadold-guff-dde167d672a151c026307859551bf69f439ab602.tar.bz2
old-guff-dde167d672a151c026307859551bf69f439ab602.zip
fix search delay
Diffstat (limited to 'data')
-rw-r--r--data/stuff/js/search-field.js7
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) {