aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
Diffstat (limited to 'wqflask')
-rwxr-xr-xwqflask/wqflask/templates/index_page.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/wqflask/wqflask/templates/index_page.html b/wqflask/wqflask/templates/index_page.html
index 8b66a5b0..4803b17c 100755
--- a/wqflask/wqflask/templates/index_page.html
+++ b/wqflask/wqflask/templates/index_page.html
@@ -272,7 +272,7 @@
if ( (window.event ? event.keyCode : e.which) == 13) {
// If enter key has been pressed and the search fields are non-empty
// manually submit the <form>
- if( event.target.value != "" ) {
+ if( event.target.value.trim() != "" ) {
document.forms[1].submit();
}
}