FSN#39542 flex datum ongeldige waarde goed afgehandeld nu (met inline foutmelding)

svn path=/Website/trunk/; revision=33572
This commit is contained in:
2017-04-24 10:10:10 +00:00
parent 59e2d38e32
commit 3f5aaaeaba
2 changed files with 5 additions and 10 deletions

View File

@@ -572,7 +572,7 @@ function listKenmerk(sql, module, key, props)
anyTextarea = true; // straks autogrow code
kv = "<textarea "
+ (kregexp ? " regexp='" + kregexp + "' " : "")
+ " onChange='valid=checkKenmerk(this, false,\"" + ktype + "\"," + klen + "," + kdec + "," + kmin + "," + kmax + ")"
+ " onChange='checkKenmerk(this, false,\"" + ktype + "\"," + klen + "," + kdec + "," + kmin + "," + kmax + ")"
+ onchangeExp
+ "'"
+ " onBlur='checkKenmerk(this, true,\"" + ktype + "\"," + klen + "," + kdec + "," + kmin + "," + kmax + ")'"
@@ -609,7 +609,7 @@ function listKenmerk(sql, module, key, props)
{
kv = "<input type='text'"
+ (kregexp ? " regexp='" + kregexp + "' " : "")
+ " onChange='valid=checkKenmerk(this, false,\"" + ktype + "\"," + klen + "," + kdec + "," + kmin + "," + kmax + ")"
+ " onChange='checkKenmerk(this, false,\"" + ktype + "\"," + klen + "," + kdec + "," + kmin + "," + kmax + ")"
+ onchangeExp
+ "'"
+ " onBlur='checkKenmerk(this, true,\"" + ktype + "\"," + klen + "," + kdec + "," + kmin + "," + kmax + ")'"
@@ -1087,7 +1087,7 @@ function listKenmerk(sql, module, key, props)
kv = "<input type='text'"
+ (!readonlyfield && kregexp ? " regexp='" + kregexp + "' " : "")
+ (!readonlyfield
? " onChange='valid=checkKenmerk(this, false,\"" + ktype + "\"," + klen + "," + kdec + "," + kmin + "," + kmax + ")"
? " onChange='checkKenmerk(this, false,\"" + ktype + "\"," + klen + "," + kdec + "," + kmin + "," + kmax + ")"
+ onchangeExp
+ "' "
: "")

View File

@@ -147,13 +147,8 @@ function checkKenmerk(field, show, ktype, klen, kdec, kmin, kmax)
}
}
}
if (show && !valid)
{
alert(err); // temp: FSN#39542
field.focus();
// FcltMgr.alert(err, { fnafterclose: function () { field.focus(); } });
}
else if (!show && valid && field.className.match(/required\d*S\d*/g) && field.className.match(/required\d*S\d*/g).length > 0)
makeBad(field, valid, err);
if (!show && valid && field.className.match(/required\d*S\d*/g) && field.className.match(/required\d*S\d*/g).length > 0)
{ // Er is een required groep aanwezig.
var requiredgroup = field.className.match(/required\d*S\d*/g)[0];
var group = requiredgroup.substr(8);