Jelajahi Sumber

Oops, typo in "Prevent the JS validation (on focus) to create multiple entries for the same field, since it breaks the validation."

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@3422 a333f486-631f-4898-b8df-5754b55c2be0
dflaven 10 tahun lalu
induk
melakukan
55f7dc5e5a
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      js/property_field.js

+ 1 - 1
js/property_field.js

@@ -267,7 +267,7 @@ function ValidateWithPattern(sFieldId, bMandatory, sPattern, sFormId, aForbidden
 	{
 		$('#v_'+sFieldId).addClass('ui-state-error');
 		iFieldIdPos = jQuery.inArray(sFieldId, oFormValidation[sFormId]);
-		if (iFieldPos == -1)
+		if (iFieldIdPos == -1)
 		{
 			oFormValidation[sFormId].push(sFieldId);			
 		}