From e18749f85588dace5b15ed23d994cfebe739eb12 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 19 Aug 2010 10:53:44 -0400 Subject: [PATCH] Fix for Bug 5156 - JavaScript error when adding list JavaScript referenced nonexistent form name Signed-off-by: Galen Charlton --- .../intranet-tmpl/prog/en/modules/virtualshelves/shelves.tmpl | 2 +- koha-tmpl/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 62ee69afb6..547668ac4d 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 bb2078a0d8..b79ddab612 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"; -- 2.20.1