aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/CustomNumberField.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2018-05-31 15:53:56 +0500
committerAbyss777 <abyss@fox5.ru>2018-05-31 16:02:05 +0500
commitb56be9f7fd8dc4f0a65f7606828a023d392b473e (patch)
tree8a1c8d478d6aa51482389aedc75ed14c31e899d5 /web/app/view/CustomNumberField.js
parent29ab3eabfe35aa6ad6d2a8be3d7f7b790623ea1e (diff)
downloadtrackermap-web-b56be9f7fd8dc4f0a65f7606828a023d392b473e.tar.gz
trackermap-web-b56be9f7fd8dc4f0a65f7606828a023d392b473e.tar.bz2
trackermap-web-b56be9f7fd8dc4f0a65f7606828a023d392b473e.zip
Add engine hours in milliseconds support
Diffstat (limited to 'web/app/view/CustomNumberField.js')
-rw-r--r--web/app/view/CustomNumberField.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/web/app/view/CustomNumberField.js b/web/app/view/CustomNumberField.js
index 3226d56f..8cfac1ee 100644
--- a/web/app/view/CustomNumberField.js
+++ b/web/app/view/CustomNumberField.js
@@ -72,6 +72,16 @@ Ext.define('Traccar.view.CustomNumberField', {
}
};
break;
+ case 'hours':
+ config.units = {};
+ config.units.getStore = function () {
+ return Ext.getStore('HoursUnits');
+ };
+ config.units.getValue = function () {
+ return 'h';
+ };
+ unitName = Strings.sharedHourAbbreviation;
+ break;
default:
break;
}