diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-08-15 15:19:21 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-08-15 15:19:21 +0200 |
commit | f29a1de916fa2da52ef0d975d5dea8f22d7229cc (patch) | |
tree | c8245ad426e10980e15770c825efa009a1f5dbed /ishtar_common/templates/widgets | |
parent | 705d2f787cdf29aa4524a45e0399cd950441fb51 (diff) | |
download | Ishtar-f29a1de916fa2da52ef0d975d5dea8f22d7229cc.tar.bz2 Ishtar-f29a1de916fa2da52ef0d975d5dea8f22d7229cc.zip |
Search: prevent modification submit on enter
Diffstat (limited to 'ishtar_common/templates/widgets')
-rw-r--r-- | ishtar_common/templates/widgets/search_input.html | 2 |
1 files changed, 2 insertions, 0 deletions
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'); } |