range fields autonumeric
This commit is contained in:
@@ -101,21 +101,6 @@ define('views/fields/float', ['views/fields/int'], function (Dep) {
|
||||
return this.formatNumberDetail(value);
|
||||
},
|
||||
|
||||
/**
|
||||
* @todo Remove. Used in range.
|
||||
*/
|
||||
formatNumberEdit: function (value) {
|
||||
if (value === null) {
|
||||
return '';
|
||||
}
|
||||
|
||||
let parts = value.toString().split(".");
|
||||
|
||||
parts[0] = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, this.thousandSeparator);
|
||||
|
||||
return parts.join(this.decimalMark);
|
||||
},
|
||||
|
||||
formatNumberDetail: function (value) {
|
||||
if (value === null) {
|
||||
return '';
|
||||
|
||||
Reference in New Issue
Block a user