Field validation now preserves background images

SVN:trunk[150]
This commit is contained in:
Denis Flaven
2009-09-11 21:20:45 +00:00
parent 3c8f7cf08a
commit e4f4b66722

View File

@@ -127,7 +127,7 @@ function CheckMandatoryFields(sFormId)
$('#'+sFormId+' :input.mandatory').each( function() {
if (( this.value == '') || (this.value == 0))
{
this.style.background = '#fcc';
this.style.backgroundColor = '#fcc';
iErrorsCount++;
if (iErrorsCount == 1)
{
@@ -136,7 +136,7 @@ function CheckMandatoryFields(sFormId)
}
else
{
this.style.background = '#fff';
this.style.backgroundColor = '#fff';
}
}
);