diff options
author | zsloan | 2024-01-02 19:21:07 +0000 |
---|---|---|
committer | zsloan | 2024-01-02 19:21:37 +0000 |
commit | 7c3c07a371de310215e416abaef3186436742e31 (patch) | |
tree | df37c75ecfe28672dd31356978760926767002a0 /gn2/wqflask/templates | |
parent | ecb83c962536bffe468767597da76b25c813be64 (diff) | |
download | genenetwork2-7c3c07a371de310215e416abaef3186436742e31.tar.gz |
Change the way the info button works so that it just submits a form instead of opening a window with JS
Diffstat (limited to 'gn2/wqflask/templates')
-rwxr-xr-x | gn2/wqflask/templates/index_page.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/gn2/wqflask/templates/index_page.html b/gn2/wqflask/templates/index_page.html index 7b5a1d16..a245b7f3 100755 --- a/gn2/wqflask/templates/index_page.html +++ b/gn2/wqflask/templates/index_page.html @@ -203,7 +203,7 @@ <!-- SEARCH, MAKE DEFAULT --> <div class="form-group"> </div> - + <input type="hidden" name="accession_id" value="None" class="form-control"> <input type="hidden" name="FormID" value="searchResult" class="form-control"> </div> </fieldset> @@ -386,12 +386,11 @@ $(document).on('submit', '#searchform', function(event){ if( event.target.value.trim() != "" ) { saveBeforeSubmit(event.target.value.trim()) - $("#searchform")[0].submit(); - + $("#searchform").prop("action", "/search") + $("#searchform")[0].submit(); } } } - </script> {% endblock %} |