aboutsummaryrefslogtreecommitdiff
path: root/wqflask/wqflask/templates/index_page_orig.html
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask/wqflask/templates/index_page_orig.html')
-rwxr-xr-xwqflask/wqflask/templates/index_page_orig.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/wqflask/wqflask/templates/index_page_orig.html b/wqflask/wqflask/templates/index_page_orig.html
index dba3e266..ee598cf3 100755
--- a/wqflask/wqflask/templates/index_page_orig.html
+++ b/wqflask/wqflask/templates/index_page_orig.html
@@ -300,11 +300,12 @@
function pressed(e) {
// Has the enter key been pressed?
if ( (window.event ? event.keyCode : e.which) == 13) {
+ e.preventDefault();
// If enter key has been pressed and the search fields are non-empty
- // manually submit the <form>
- if( event.target.value.trim() != "" ) {
- document.forms[1].submit();
- }
+ // manually submit the <form>
+ if( event.target.value.trim() != "" ) {
+ document.forms[1].submit();
+ }
}
}
</script>