summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ishtar_common/static/js/ishtar.js2
-rw-r--r--ishtar_common/templates/widgets/search_input.html2
2 files changed, 4 insertions, 0 deletions
diff --git a/ishtar_common/static/js/ishtar.js b/ishtar_common/static/js/ishtar.js
index 4cafabd22..514044a07 100644
--- a/ishtar_common/static/js/ishtar.js
+++ b/ishtar_common/static/js/ishtar.js
@@ -712,6 +712,8 @@ function register_advanced_search(){
var key = e.key;
if (key === "Enter") {
$(".advanced-search-valid").click();
+ e.stopPropagation();
+ return false;
}
});
$(".advanced-search-valid").click(update_search_field);
diff --git a/ishtar_common/templates/widgets/search_input.html b/ishtar_common/templates/widgets/search_input.html
index 611caf054..25d8b32b9 100644
--- a/ishtar_common/templates/widgets/search_input.html
+++ b/ishtar_common/templates/widgets/search_input.html
@@ -48,6 +48,8 @@ $(document).ready(function(){
if (key === "Enter") {
$(".search_button").click();
$(this).focus();
+ e.stopPropagation();
+ return false;
} else {
$("#id_search_vector").addClass('input-progress');
}