aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzsloan2023-03-15 00:52:57 +0000
committerzsloan2023-03-15 00:59:55 +0000
commitbb5b7297c23616172e752b8becfde9236edea9c9 (patch)
treece7a5d018624e00103df6280ff277526e93d35ca
parentca8ad479407720fca5bf61400ebc5690c1a02140 (diff)
downloadgenenetwork2-bb5b7297c23616172e752b8becfde9236edea9c9.tar.gz
Change global search form id to gsearchform instead of searchform (since searchform is already used for the regular search)
-rwxr-xr-xwqflask/wqflask/templates/index_page.html6
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();
}
});