unsavedclass option

This commit is contained in:
vitalets
2013-01-17 00:14:07 +04:00
parent 22fdd0e8b6
commit 9c7a2bab60
5 changed files with 62 additions and 57 deletions

@ -228,6 +228,7 @@ Editableform is linked with one of input types, e.g. 'text', 'select' etc.
}
//if success callback returns object like {newValue: <something>} --> use that value instead of submitted
//it is usefull if you want to chnage value in url-function
if(res && typeof res === 'object' && res.hasOwnProperty('newValue')) {
newValue = res.newValue;
}