From c885a150c57844471c0900f707b8ca5929206420 Mon Sep 17 00:00:00 2001 From: Nahuel ANGELINETTI Date: Fri, 29 May 2009 12:32:46 +0200 Subject: [PATCH] (bug #3170) do not check fields < 010 This patch add a if, to disallow the check of fields < 010, because they could have no subfields, and are mandatory. Signed-off-by: Galen Charlton --- .../en/modules/authorities/authorities.tmpl | 32 +++++++++-------- .../en/modules/cataloguing/addbiblio.tmpl | 36 ++++++++++--------- 2 files changed, 38 insertions(+), 30 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tmpl index f32e4458e2..d07bd46a29 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/authorities/authorities.tmpl @@ -68,21 +68,25 @@ function AreMandatoriesNotOk(){ divid = "tag_" + arr[0] + "_" + arr[1]; varegexp = new RegExp("^tag_" + arr[0] + "_code_"); - elem = document.getElementById(divid); - eleminputs = elem.getElementsByTagName('input'); - - for(var j=0,len2=eleminputs.length; j 10){ + elem = document.getElementById(divid); + eleminputs = elem.getElementsByTagName('input'); + + for(var j=0,len2=eleminputs.length; j 10){ + elem = document.getElementById(divid); + eleminputs = elem.getElementsByTagName('input'); + + for(var j=0,len2=eleminputs.length; j