Fix for Bug 5156, JavaScript error when adding list
authorOwen Leonard <oleonard@myacpl.org>
Wed, 6 Apr 2011 09:27:11 +0000 (11:27 +0200)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Sat, 16 Apr 2011 17:17:12 +0000 (13:17 -0400)
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 9bb36148fddd4cb249c83033c5d6c27bef0513a6)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl
koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl

index 827f5be..872ba8e 100644 (file)
@@ -100,7 +100,7 @@ function placeHold () {
                }
 
                if (_alertString.length==0) {
-            document.f.submit();
+            f.submit();
                } else {
                        alertString2 = _("Form not submitted because of the following problem(s)");
                        alertString2 += "\n------------------------------------------------------------------------------------\n\n";
index 7441887..2355b8d 100644 (file)
@@ -125,7 +125,7 @@ $(function() {
                }
 
                if (_alertString.length==0) {
-                       document.f.submit();
+                       f.submit();
                } else {
                        alertString2 = _("Form not submitted because of the following problem(s)");
                        alertString2 += "\n------------------------------------------------------------------------------------\n\n";