aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/stuff/js/search-field.js7
-rw-r--r--src/guff/views/ecrs/test/auth.ecr1
2 files changed, 5 insertions, 3 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) {
diff --git a/src/guff/views/ecrs/test/auth.ecr b/src/guff/views/ecrs/test/auth.ecr
index 0e044f7..bea7adb 100644
--- a/src/guff/views/ecrs/test/auth.ecr
+++ b/src/guff/views/ecrs/test/auth.ecr
@@ -108,7 +108,6 @@
id='filter-q'
class='form-control'
title='Enter search terms'
- data-search-delay='500'
/>
</div><!-- input-group -->
</div><!-- panel-heading -->