Bug 6373 : 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. [EDIT by Owen Leonard] Removed commented line Signed-off-by: Owen Leonard <oleonard@myacpl.org> Follow-up by owen, that he forgot to upload on bugzilla: Signed-off patch includes one minor edit: I removed the commented-out line which the jQuery line replaces. We have git to track changes for us, we don't have to leave old code in. Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
parent
552cde08db
commit
57da5e68f7
|
|
@ -161,7 +161,7 @@ function AreMandatoriesNotOk(){
|
|||
if( tabflag[tag+subfield+tagnumber][0] != 1 && (document.getElementById(mandatories[i]) != null && ! document.getElementById(mandatories[i]).value || document.getElementById(mandatories[i]) == null)){
|
||||
tabflag[tag+subfield+tagnumber][0] = 0 + tabflag[tag+subfield+tagnumber] ;
|
||||
document.getElementById(mandatories[i]).setAttribute('class','subfield_not_filled');
|
||||
document.getElementById(mandatories[i]).focus();
|
||||
$('#' + mandatories[i]).focus();
|
||||
tabflag[tag+subfield+tagnumber][1]=label[i];
|
||||
tabflag[tag+subfield+tagnumber][2]=tab[i];
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in New Issue