diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-07-03 19:58:50 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2018-08-13 18:26:03 +0200 |
commit | af27a6bb1e153b0c20cfed9c645b30adedde3347 (patch) | |
tree | 69e1ffb0a77463b6186266830e75610544923b9d /ishtar_common/templates/widgets | |
parent | 0ddd8bd878d7a13f8ab8159b0f95d1d49c415fc3 (diff) | |
download | Ishtar-af27a6bb1e153b0c20cfed9c645b30adedde3347.tar.bz2 Ishtar-af27a6bb1e153b0c20cfed9c645b30adedde3347.zip |
UI search: manage enter - fix criteria search management (refs #4180)
Diffstat (limited to 'ishtar_common/templates/widgets')
-rw-r--r-- | ishtar_common/templates/widgets/search_input.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ishtar_common/templates/widgets/search_input.html b/ishtar_common/templates/widgets/search_input.html index 1d7521a2a..a1e5aa2e4 100644 --- a/ishtar_common/templates/widgets/search_input.html +++ b/ishtar_common/templates/widgets/search_input.html @@ -17,3 +17,15 @@ </span> </span> </div> + +<script type="text/javascript"> +$(document).ready(function(){ + $(".search-widget input").keypress(function(e) { + if(e.which == 13) { + $(".search-widget").parents( + '.search').find("p > .btn-primary").click(); + $(this).focus(); + } + }); +}); +</script> |