From bd13bb32d88036c867a315ba2d25112dc08457e0 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 6 Dec 2011 11:43:10 -0500 Subject: [PATCH] Bug 7323 - Javascript error when editing list Correcting check for empty shelf name to prevent javascript error. Also correcting unescaped ampersand. Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain (cherry picked from commit 2cfb3398cf567c72473a98224a2cb0387e1f7fea) Signed-off-by: Chris Nighswonger --- .../intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt index 12a06658d0..b43202032a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tt @@ -95,7 +95,7 @@ function placeHold () { var _alertString=""; var alertString2; - if(f.addshelf.value.length ==0){ + if($("#shelfname").val() == ""){ _alertString += _("- You must enter a List Name") + "\n"; } @@ -349,7 +349,7 @@ function placeHold () { List NameContentsSort byTypeOptions [% FOREACH shelveslooppri IN shelveslooppriv %] [% IF ( shelveslooppri.toggle ) %][% ELSE %][% END %] - [% shelveslooppri.shelfname |html %] + [% shelveslooppri.shelfname |html %] [% shelveslooppri.count %] item(s) [% IF ( shelveslooppri.authorsort ) %]Author[% ELSIF ( shelveslooppri.yearsort ) %]Year[% ELSE %]Title[% END %] [% IF ( shelveslooppri.viewcategory1 ) %]Private[% END %] -- 2.39.5