Bug 14265 - Use $.trim instead of trim() in admin/categorie.tt
authorDavid Cook <dcook@prosentient.com.au>
Mon, 25 May 2015 04:01:09 +0000 (14:01 +1000)
committerChris Cormack <chris@bigballofwax.co.nz>
Wed, 3 Jun 2015 08:05:39 +0000 (20:05 +1200)
commit4fd21c2258aa725162b57031cd80430acbaf46d6
tree4828f55f03227b45e97e7d840dc38d9f80b8f22d
parentd1708202116435ccc2c7e77937f667177a015121
Bug 14265 - Use $.trim instead of trim() in admin/categorie.tt

This patch replaces trim() with $.trim() in admin/categorie.tt, as
$.trim() is more cross-platform (ie it is supported in "< IE9").

_TEST PLAN_

Before applying patch:

0) Use IE 8 or use Document Mode 8 in a newer IE using F12 Developer Tools
1) Go to Administration > Patron categories
2) Click "Edit" next to a category
3) Click "Save" at the bottom
4) Note the form doesn't submit (you can also notice the error in the
console log)

Apply the patch:

5) Hold down shift + refresh the page
6) Click "Save" at the bottom"
7) Note that the form does submit and there are no errors reported

Signed-off-by: Indranil Das Gupta <indradg@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@koha-community.org>
No regression found using iceweasel.
I did not know the staff interface was IE compatible.
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 06ef68046e52a56f690e656f30592ff46b21a383)
koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt