Commit d77b420618e05d1c9de947a8f5ce4f1c349e416b
1 parent
c65d5745
Merged in...
KTS-3627 "Saving a search with Japanese characters causes IE6/7 to display the saved search as "??" (SUP-967)" Fixed. Added trim() on the saved name. Committed by: Megan Watson Reviewed by: Conrad Vermeulen git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/STABLE/branches/3.5.4-Release-Branch@9568 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
3 additions
and
2 deletions
templates/ktcore/search2/search_results.smarty
| ... | ... | @@ -37,8 +37,9 @@ |
| 37 | 37 | function saveSearch() |
| 38 | 38 | { |
| 39 | 39 | var txtName = $('txtSaveName'); |
| 40 | + var text = txtName.value.trim(); | |
| 40 | 41 | var txtQuery = '{/literal}{$txtQuery|escape:'quotes'}{literal}'; |
| 41 | - if (txtName.value == '') | |
| 42 | + if (text == '') | |
| 42 | 43 | { |
| 43 | 44 | alert("{/literal}{i18n}Please enter a name for the search expression.{/i18n}{literal}"); |
| 44 | 45 | txtName.focus(); |
| ... | ... | @@ -73,7 +74,7 @@ function saveSearch() |
| 73 | 74 | alert("{/literal}{i18n}There is a problem communicating with the server.{/i18n}{literal}" + o.responseText); |
| 74 | 75 | }, |
| 75 | 76 | params: { |
| 76 | - txtName: txtName.value, | |
| 77 | + txtName: text, | |
| 77 | 78 | txtQuery: txtQuery |
| 78 | 79 | } |
| 79 | 80 | }); | ... | ... |