aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/CustomNumberField.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-05-31 23:16:08 +1200
committerGitHub <noreply@github.com>2018-05-31 23:16:08 +1200
commitb7cad4c8622997b10e42f7dbd89393dab7af9423 (patch)
tree8a1c8d478d6aa51482389aedc75ed14c31e899d5 /web/app/view/CustomNumberField.js
parent29ab3eabfe35aa6ad6d2a8be3d7f7b790623ea1e (diff)
parentb56be9f7fd8dc4f0a65f7606828a023d392b473e (diff)
downloadtrackermap-web-b7cad4c8622997b10e42f7dbd89393dab7af9423.tar.gz
trackermap-web-b7cad4c8622997b10e42f7dbd89393dab7af9423.tar.bz2
trackermap-web-b7cad4c8622997b10e42f7dbd89393dab7af9423.zip
Merge pull request #677 from Abyss777/engineHours
Add support of engine hours in milliseconds
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;
}