From 033284b1a16fcc04a00844352e42c7e9b7e5a14e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Wed, 6 Apr 2011 11:27:11 +0200 Subject: [PATCH] Fix for Bug 5156, JavaScript error when adding list Signed-off-by: Katrin Fischer Signed-off-by: Chris Cormack (cherry picked from commit 9bb36148fddd4cb249c83033c5d6c27bef0513a6) Signed-off-by: Chris Nighswonger --- .../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 827f5be04f..872ba8eae8 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 7441887a29..2355b8dbde 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"; -- 2.39.5