fix - [ 1195523 ] Bug in Data Type Telephone Number

This commit is contained in:
Roy Johnson 2005-06-06 20:18:15 +00:00
parent 86e89a63be
commit fdeb180096

View file

@ -4,9 +4,9 @@ function doInputCheck(field,valid) {
for (var i=0; i<field.value.length; i++) {
temp = "" + field.value.substring(i, i+1);
if (valid.indexOf(temp) == "-1") ok = "no";
}
if (ok == "no") {
field.value = field.value.substring(0, (field.value.length) - 1);
if (ok == "no") {
field.value = field.value.substring(0, i);
}
}
}