aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorzsloan2022-01-20 19:40:47 +0000
committerzsloan2022-01-27 13:45:09 -0600
commitfb8e8c5f56b122e4561d448ce2873183da73f561 (patch)
tree5681b1048410b0e14fe78293b620ca3958868d7d /wqflask
parent65ebd0ae48d77120569fb830b593c16f52a15cca (diff)
downloadgenenetwork2-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.js7
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()