[Koha-patches] [PATCH] [SIGNED-OFF] Fix for Bug 5156, JavaScript error when adding list
Katrin Fischer
Katrin.Fischer.83 at web.de
Wed Apr 6 11:27:11 CEST 2011
From: Owen Leonard <oleonard at myacpl.org>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83 at web.de>
---
.../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 6fb3efa..0b3bf2d 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.f.submit();
+ 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 da6ce16..e8d18f8 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tmpl
@@ -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";
--
1.7.1
More information about the Koha-patches
mailing list