From f29a1de916fa2da52ef0d975d5dea8f22d7229cc Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Wed, 15 Aug 2018 15:19:21 +0200 Subject: Search: prevent modification submit on enter --- ishtar_common/templates/widgets/search_input.html | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ishtar_common/templates/widgets') 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'); } -- cgit v1.2.3