diff options
author | Ethan Willis | 2015-10-22 20:57:41 -0500 |
---|---|---|
committer | Ethan Willis | 2015-10-22 20:57:41 -0500 |
commit | 6c48172bcff84c35151797ab8aab0cf30d5aea93 (patch) | |
tree | c345a29f680f8083504cec06d108b1a797fac98d | |
parent | ac57b5320412217a9f97f02ab1bda63660c3bc72 (diff) | |
download | genenetwork2-6c48172bcff84c35151797ab8aab0cf30d5aea93.tar.gz |
Fixes issue #98. Doesn't submit search request if the search request
contains *only* whitespace.
-rwxr-xr-x | wqflask/wqflask/templates/index_page.html | 2 |
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(); } } |