dev build

This commit is contained in:
vitalets
2013-10-10 20:42:55 +04:00
parent ad3c8f5c83
commit 7191240c75
10 changed files with 94 additions and 21 deletions

@ -199,8 +199,8 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
//get new value from input
var newValue = this.input.input2value();
// validation: if validate returns string or truthy value - means error
// if returns object like {newValue: '...'} => submitted value is reassigned to it
//validation: if validate returns string or truthy value - means error
//if returns object like {newValue: '...'} => submitted value is reassigned to it
var error = this.validate(newValue);
if ($.type(error) === 'object' && error.newValue !== undefined) {
newValue = error.newValue;