added number-type to settings framework. persist expanded object on server-side sync if changed
parent
8ee866fc9d
commit
ab2c0cfa9f
@ -0,0 +1,14 @@
|
||||
define(function () {
|
||||
|
||||
return {
|
||||
types: ['number'],
|
||||
get: function (element, trim, empty) {
|
||||
var value = element.val();
|
||||
if (!empty) {
|
||||
return value ? +value : void 0;
|
||||
}
|
||||
return value ? +value : 0;
|
||||
}
|
||||
};
|
||||
|
||||
});
|
Loading…
Reference in New Issue