From 86ced882c5ef4bbe63005c9f9d6d8453f7d692bb Mon Sep 17 00:00:00 2001 From: =?utf-8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= Date: Thu, 19 May 2011 10:46:29 -0400 Subject: [PATCH] Corrects a validation problem on addbiblio.pl on IE8 The mandatory fields popup didn't appear when some mandatory fields weren't filled on IE8. Replacing the "focus" with its JQuery equivalent corrected the problem. --- .../prog/en/modules/cataloguing/addbiblio.tmpl | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl index b33f897..20652b4 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/cataloguing/addbiblio.tmpl @@ -136,7 +136,8 @@ function AreMandatoriesNotOk(){ if( ! document.getElementById(mandatories[i]).value){ tabflag[tag+subfield+tagnumber][0] = 0 + tabflag[tag+subfield+tagnumber] ; document.getElementById(mandatories[i]).setAttribute('class','subfield_not_filled'); - document.getElementById(mandatories[i]).focus(); + //document.getElementById(mandatories[i]).focus(); + $('#' + mandatories[i]).focus(); tabflag[tag+subfield+tagnumber][1]=label[i]; tabflag[tag+subfield+tagnumber][2]=tab[i]; } else { -- 1.5.6.5