[Koha-patches] [PATCH] Fix for Bug 5156, JavaScript error when adding list
Owen Leonard
oleonard at myacpl.org
Thu Feb 24 21:28:36 CET 2011
---
.../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 1e1d2d5..6b48ca0 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.3
More information about the Koha-patches
mailing list