mirror of
https://github.com/NuSkooler/enigma-bbs.git
synced 2025-07-26 04:28:17 +02:00
Clean up logging a bit & implement 'omit'
* 'omit' can be set to omit views from form submission * Don't log as much noise
This commit is contained in:
parent
094385a150
commit
afb7854ea5
2 changed files with 15 additions and 14 deletions
|
@ -220,6 +220,12 @@ View.prototype.setPropertyValue = function(propName, value) {
|
|||
|
||||
case 'argName' : this.submitArgName = value; break;
|
||||
|
||||
case 'omit' :
|
||||
if(_.isBoolean(value)) {
|
||||
this.omitFromSubmission = value; break;
|
||||
}
|
||||
break;
|
||||
|
||||
case 'validate' :
|
||||
if(_.isFunction(value)) {
|
||||
this.validate = value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue