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 Cormack <chrisc@catalyst.net.nz>
Thu, 7 Apr 2011 03:26:20 +0000 (15:26 +1200)
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl
koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl

index 6fb3efa..0b3bf2d 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 da6ce16..e8d18f8 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";