From e4f4b66722633fe7eac19151e5d7c1961903fe43 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Fri, 11 Sep 2009 21:20:45 +0000 Subject: [PATCH] Field validation now preserves background images SVN:trunk[150] --- js/forms-json-utils.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/forms-json-utils.js b/js/forms-json-utils.js index 60754bd07..2a0140fff 100644 --- a/js/forms-json-utils.js +++ b/js/forms-json-utils.js @@ -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'; } } );