mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-08-13 04:59:29 +02:00
* 'validator' property
This commit is contained in:
parent
ef96d55b3f
commit
964b899fe5
1 changed files with 8 additions and 1 deletions
|
@ -224,6 +224,13 @@ View.prototype.setPropertyValue = function(propName, value) {
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 'argName' : this.submitArgName = value; break;
|
case 'argName' : this.submitArgName = value; break;
|
||||||
|
|
||||||
|
case 'validate' :
|
||||||
|
console.log(value)
|
||||||
|
if(_.isFunction(value)) {
|
||||||
|
this.validate = value;
|
||||||
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(/styleSGR[0-9]{1,2}/.test(propName)) {
|
if(/styleSGR[0-9]{1,2}/.test(propName)) {
|
||||||
|
@ -269,4 +276,4 @@ View.prototype.onKeyPress = function(ch, key) {
|
||||||
};
|
};
|
||||||
|
|
||||||
View.prototype.getData = function() {
|
View.prototype.getData = function() {
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue