From 6c48172bcff84c35151797ab8aab0cf30d5aea93 Mon Sep 17 00:00:00 2001 From: Ethan Willis Date: Thu, 22 Oct 2015 20:57:41 -0500 Subject: Fixes issue #98. Doesn't submit search request if the search request contains *only* whitespace. --- wqflask/wqflask/templates/index_page.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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
- if( event.target.value != "" ) { + if( event.target.value.trim() != "" ) { document.forms[1].submit(); } } -- cgit v1.2.3