From 704a1df8909ce37c627fbdf7c36b379a94964f21 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Fri, 28 Dec 2007 11:07:58 -0600 Subject: [PATCH] fixed Javascript in additem.tmpl Signed-off-by: Joshua Ferraro --- .../prog/en/modules/cataloguing/additem.tmpl | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tmpl index 64d8ecc225..786429c7d9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/additem.tmpl @@ -33,12 +33,13 @@ function Check(f) { } var alertString2; if (total_errors==0) { - document.f.submit(); + return true; } else { alertString2 = _("Form not submitted because of the following problem(s)"); alertString2 += "\n------------------------------------------------------------------------------------\n"; alertString2 += "\n- "+ total_errors+_(" mandatory fields empty (see bold subfields)"); alert(alertString2); + return false; } } function Dopop(link,i) { @@ -208,18 +209,13 @@ function CreateKey(){ " /> - - - + " /> " /> " /> - + -- 2.20.1