aboutsummaryrefslogtreecommitdiff
path: root/data/stuff
diff options
context:
space:
mode:
Diffstat (limited to 'data/stuff')
-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) {