aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/CustomNumberField.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-04-11 14:31:42 +0500
committerAbyss777 <abyss@fox5.ru>2018-04-19 12:15:59 +0500
commit19a9155d988dcee7698a65a45b0558aa0ff279d4 (patch)
treecea9ae5c73a625d01bc06df5742228b5cbbd1def /web/app/view/CustomNumberField.js
parent4e7d2b8fdb41390205d69997d61db536545f5564 (diff)
downloadtrackermap-web-19a9155d988dcee7698a65a45b0558aa0ff279d4.tar.gz
trackermap-web-19a9155d988dcee7698a65a45b0558aa0ff279d4.tar.bz2
trackermap-web-19a9155d988dcee7698a65a45b0558aa0ff279d4.zip
Implement Maintenances
Diffstat (limited to 'web/app/view/CustomNumberField.js')
-rw-r--r--web/app/view/CustomNumberField.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/web/app/view/CustomNumberField.js b/web/app/view/CustomNumberField.js
index 807bad4d..3226d56f 100644
--- a/web/app/view/CustomNumberField.js
+++ b/web/app/view/CustomNumberField.js
@@ -1,6 +1,6 @@
/*
- * Copyright 2017 Anton Tananaev (anton@traccar.org)
- * Copyright 2017 Andrey Kunitsyn (andrey@traccar.org)
+ * Copyright 2017 - 2018 Anton Tananaev (anton@traccar.org)
+ * Copyright 2017 - 2018 Andrey Kunitsyn (andrey@traccar.org)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -78,16 +78,16 @@ Ext.define('Traccar.view.CustomNumberField', {
config.afterBodyEl = this.unitEl + unitName + '</div></div>';
config.rawToValue = function (rawValue) {
if (this.units) {
- return this.units.getStore().convertValue(rawValue, this.units.getValue(), true);
+ return this.units.getStore().convertValue(this.parseValue(rawValue), this.units.getValue(), true);
} else {
return this.parseValue(rawValue);
}
};
config.valueToRaw = function (value) {
if (this.units) {
- return this.units.getStore().convertValue(value, this.units.getValue(), false);
+ return String(this.units.getStore().convertValue(value, this.units.getValue(), false));
} else {
- return this.parseValue(value);
+ return String(value);
}
};
if (config.units) {