Pārlūkot izejas kodu

Field validation now preserves background images

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@150 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 15 gadi atpakaļ
vecāks
revīzija
8906efb349
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      js/forms-json-utils.js

+ 2 - 2
js/forms-json-utils.js

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