Fix for Bug 5156 - JavaScript error when adding list
authorOwen Leonard <oleonard@myacpl.org>
Thu, 19 Aug 2010 14:53:44 +0000 (10:53 -0400)
committerGalen Charlton <gmcharlt@gmail.com>
Wed, 6 Oct 2010 12:51:18 +0000 (08:51 -0400)
JavaScript referenced nonexistent form name

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl
koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl

index 62ee69a..547668a 100644 (file)
@@ -100,7 +100,7 @@ function placeHold () {
                }
 
                if (_alertString.length==0) {
-                       document.Aform.submit();
+            document.f.submit();
                } else {
                        alertString2 = _("Form not submitted because of the following problem(s)");
                        alertString2 += "\n------------------------------------------------------------------------------------\n\n";
index bb2078a..b79ddab 100644 (file)
@@ -122,7 +122,7 @@ $(function() {
                }
 
                if (_alertString.length==0) {
-                       document.Aform.submit();
+                       document.f.submit();
                } else {
                        alertString2 = _("Form not submitted because of the following problem(s)");
                        alertString2 += "\n------------------------------------------------------------------------------------\n\n";