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

View File

@@ -110,18 +110,4 @@
.editable-clear-x:hover {
opacity: 1;
}
/*
.editable-clear-x1 {
background: url('../img/clear.png') center center no-repeat;
display: inline-block;
zoom: 1;
*display: inline;
width: 13px;
height: 13px;
vertical-align: middle;
position: relative;
margin-left: -20px;
}
*/
}

View File

@@ -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;
}