[Koha-patches] [PATCH] Fix for Bug 5156 - JavaScript error when adding list

Owen Leonard oleonard at myacpl.org
Thu Aug 19 16:53:44 CEST 2010


JavaScript referenced nonexistent form name
---
 .../prog/en/modules/virtualshelves/shelves.tmpl    |    2 +-
 .../opac-tmpl/prog/en/modules/opac-shelves.tmpl    |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl
index 62ee69a..547668a 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl
@@ -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";
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
index bb2078a..b79ddab 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
@@ -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";
-- 
1.7.0.4



More information about the Koha-patches mailing list