diff options
-rw-r--r-- | wqflask/wqflask/templates/gnqa.html | 7 | ||||
-rw-r--r-- | wqflask/wqflask/templates/gnqa_answer.html | 7 |
2 files changed, 5 insertions, 9 deletions
diff --git a/wqflask/wqflask/templates/gnqa.html b/wqflask/wqflask/templates/gnqa.html index bed2627d..56d22d36 100644 --- a/wqflask/wqflask/templates/gnqa.html +++ b/wqflask/wqflask/templates/gnqa.html @@ -33,7 +33,7 @@ <div id="gnqna_controller"> <form method="POST" action="/gnqna" id="gnqna_form"> <input id="gnqna_search" style="width:45vw" type="text" autocomplete="off" -required placeholder="Ask a Question or Topic ( Genes) " value='' name="querygnqa"> +required placeholder="Ask a Question or Topic e.g ( Genes) " value='' name="querygnqa"> </form> </div> @@ -51,10 +51,9 @@ required placeholder="Ask a Question or Topic ( Genes) " value='' name="querygnq <script type="text/javascript"> document.addEventListener('DOMContentLoaded', function() { - - $("#gnqna_search").keyup(function(event) { + $("#gnqna_search").keypress(function(event) { if (event.keyCode === 13) { - $('#gnqna_form').attr('action', "/gnqna").submit(); + $('#gnqna_form').submit(); } }) diff --git a/wqflask/wqflask/templates/gnqa_answer.html b/wqflask/wqflask/templates/gnqa_answer.html index 4fb4b268..68516bb7 100644 --- a/wqflask/wqflask/templates/gnqa_answer.html +++ b/wqflask/wqflask/templates/gnqa_answer.html @@ -137,13 +137,10 @@ $('#globalsearchform').hide() $('#gnqna_search_home').show() $('footer').hide() - - $("#gnqna_search_home_input").keyup(function(event) { - - console.log("adding input") + $("#gnqna_search_home_input").keypress(function(event) { if (event.keyCode === 13) { console.log("clicked this button") - $('#gnqna_search_home').attr('action', "/gnqna").submit(); + $('#gnqna_search_home').submit(); } }) }); |