aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorEthan Willis2015-10-22 20:57:41 -0500
committerEthan Willis2015-10-22 20:57:41 -0500
commit6c48172bcff84c35151797ab8aab0cf30d5aea93 (patch)
treec345a29f680f8083504cec06d108b1a797fac98d /wqflask
parentac57b5320412217a9f97f02ab1bda63660c3bc72 (diff)
downloadgenenetwork2-6c48172bcff84c35151797ab8aab0cf30d5aea93.tar.gz
Fixes issue #98. Doesn't submit search request if the search request
contains *only* whitespace.
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();
}
}