Commit 7c2c0102b1c86c14483617264bb843803c87f2de
1 parent
35c62950
Merged in...
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/STABLE/branches/3.5.4-Release-Branch@9559 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 | 49 | |
| 50 | 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 | 54 | if (text == sSearchTranslations[12] || text == '') |
| 55 | 55 | { |
| 56 | + Ext.getCmp('txtSearchBar' + suffix).setValue(''); | |
| 56 | 57 | // Ext.example.msg(sSearchTranslations[3], sSearchTranslations[4]); /* Hint, Please enter some search criteria! */ |
| 57 | 58 | return; |
| 58 | 59 | } | ... | ... |