Bugzilla – Attachment 39468 Details for
Bug 14265
Use $.trim instead of trim() in admin/categorie.tt
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14265 - Use $.trim instead of trim() in admin/categorie.tt
Bug-14265---Use-trim-instead-of-trim-in-admincateg.patch (text/plain), 1.71 KB, created by
David Cook
on 2015-05-25 04:05:34 UTC
(
hide
)
Description:
Bug 14265 - Use $.trim instead of trim() in admin/categorie.tt
Filename:
MIME Type:
Creator:
David Cook
Created:
2015-05-25 04:05:34 UTC
Size:
1.71 KB
patch
obsolete
>From fd3ff90176e471f4fc241e95afba2f38dfd855aa Mon Sep 17 00:00:00 2001 >From: David Cook <dcook@prosentient.com.au> >Date: Mon, 25 May 2015 14:01:09 +1000 >Subject: [PATCH] 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 >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt >index 769a0bc..92a6a28 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/categorie.tt >@@ -47,7 +47,7 @@ > var ok=0; > var _alertString=_("Form not submitted because of the following problem(s)"); > _alertString +="\n-------------------------------------------------------------------\n\n"; >- ff.categorycode.value = ff.categorycode.value.trim(); >+ ff.categorycode.value = $.trim(ff.categorycode.value); > if (ff.categorycode.value.length==0) { > ok=1; > _alertString += _("- categorycode missing") + "\n"; >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 14265
:
39468
|
39486
|
39593