Merge pull request #1514 from frissdiegurke/master
added number-type to settings framework. persist expanded object on serv...v1.18.x
commit
2b4da7ebcd
@ -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