Remove invalid_value class before validation

This commit is contained in:
Marc Delisle
2011-04-30 10:57:30 -04:00
parent b276728666
commit 70100c8044

View File

@@ -215,6 +215,7 @@ function verificationsAfterFieldChange(urlField, multi_edit, theType){
} }
//validate for integer type //validate for integer type
if(theType.substring(0,3) == "int"){ if(theType.substring(0,3) == "int"){
$this_input.removeClass("invalid_value");
if(isNaN($this_input.val())){ if(isNaN($this_input.val())){
$this_input.addClass("invalid_value"); $this_input.addClass("invalid_value");
return false; return false;