Commit 25d8a59d9deaa90b89e08ffc2788019691c8a971
1 parent
f8b12713
KTS-3816
"Space in searchbox" Fixed. Committed By: Conrad Vermeulen Reviewed By: Megan Watson git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@9557 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
2 additions
and
1 deletions
resources/js/search2widget.js
| @@ -49,10 +49,11 @@ function onSearchClick(sender) | @@ -49,10 +49,11 @@ function onSearchClick(sender) | ||
| 49 | 49 | ||
| 50 | var suffix = sender.id.substring(12); | 50 | var suffix = sender.id.substring(12); |
| 51 | 51 | ||
| 52 | - var text = Ext.get('txtSearchBar' + suffix).getValue(false); | 52 | + var text = Ext.get('txtSearchBar' + suffix).getValue(false).trim(); |
| 53 | 53 | ||
| 54 | if (text == sSearchTranslations[12] || text == '') | 54 | if (text == sSearchTranslations[12] || text == '') |
| 55 | { | 55 | { |
| 56 | + Ext.getCmp('txtSearchBar' + suffix).setValue(''); | ||
| 56 | // Ext.example.msg(sSearchTranslations[3], sSearchTranslations[4]); /* Hint, Please enter some search criteria! */ | 57 | // Ext.example.msg(sSearchTranslations[3], sSearchTranslations[4]); /* Hint, Please enter some search criteria! */ |
| 57 | return; | 58 | return; |
| 58 | } | 59 | } |