diff options
author | zsloan | 2023-03-15 00:52:57 +0000 |
---|---|---|
committer | zsloan | 2023-03-15 00:59:55 +0000 |
commit | bb5b7297c23616172e752b8becfde9236edea9c9 (patch) | |
tree | ce7a5d018624e00103df6280ff277526e93d35ca /wqflask | |
parent | ca8ad479407720fca5bf61400ebc5690c1a02140 (diff) | |
download | genenetwork2-bb5b7297c23616172e752b8becfde9236edea9c9.tar.gz |
Change global search form id to gsearchform instead of searchform (since searchform is already used for the regular search)
Diffstat (limited to 'wqflask')
-rwxr-xr-x | wqflask/wqflask/templates/index_page.html | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wqflask/wqflask/templates/index_page.html b/wqflask/wqflask/templates/index_page.html index 1c136acb..dd97497f 100755 --- a/wqflask/wqflask/templates/index_page.html +++ b/wqflask/wqflask/templates/index_page.html @@ -63,7 +63,7 @@ <div class="page-header"> <h2>Select and Search</h2> </div> - <form method="get" action="/search" target="_blank" id="searchform" name="SEARCHFORM", + <form method="get" action="/search" target="_blank" id="gsearchform" name="SEARCHFORM", data-gn_server_url="{{gn_server_url}}"> <fieldset> <div style="padding-left: 20px; padding-right: 20px;" class="form-horizontal"> @@ -301,12 +301,12 @@ <script type="text/javascript"> -$(document).on('submit', '#searchform', function(event){ +$(document).on('submit', '#gsearchform', function(event){ event.preventDefault() let user_search = $("#myInput").val().trim(); if (user_search!=""){ saveBeforeSubmit(user_search) - $( "#searchform" )[0].submit(); + $( "#gsearchform" )[0].submit(); } }); |