diff options
author | zsloan | 2022-01-20 19:40:47 +0000 |
---|---|---|
committer | zsloan | 2022-01-27 13:45:09 -0600 |
commit | fb8e8c5f56b122e4561d448ce2873183da73f561 (patch) | |
tree | 5681b1048410b0e14fe78293b620ca3958868d7d /wqflask | |
parent | 65ebd0ae48d77120569fb830b593c16f52a15cca (diff) | |
download | genenetwork2-fb8e8c5f56b122e4561d448ce2873183da73f561.tar.gz |
Added some JS disabling form submission on hitting Enter, so that users can hit Enter in the Select Rows text area
Diffstat (limited to 'wqflask')
-rw-r--r-- | wqflask/wqflask/static/new/javascript/search_results.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/wqflask/wqflask/static/new/javascript/search_results.js b/wqflask/wqflask/static/new/javascript/search_results.js index 355fd18e..8ab41f25 100644 --- a/wqflask/wqflask/static/new/javascript/search_results.js +++ b/wqflask/wqflask/static/new/javascript/search_results.js @@ -130,6 +130,13 @@ $(function() { }) } + $(window).keydown(function(event){ + if((event.keyCode == 13)) { + event.preventDefault(); + return false; + } + }); + $('#select_top').keyup(function(event){ if (event.keyCode === 13) { filter_by_index() |