FSN#39542 flex datum ongeldige waarde goed afgehandeld nu (met inline foutmelding)
svn path=/Website/trunk/; revision=33572
This commit is contained in:
@@ -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
|
||||
+ "' "
|
||||
: "")
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user