diff options
author | amilasilva88 <amilasilva88@gmail.com> | 2015-08-14 11:46:27 +0800 |
---|---|---|
committer | amilasilva88 <amilasilva88@gmail.com> | 2015-08-14 11:46:27 +0800 |
commit | a70f478740514e6e60ffbe49906a9c6150b2ec99 (patch) | |
tree | 23e06e979f88ca33609da50b41b2648fbe62469d /web/app/view/state/StateController.js | |
parent | 077b5a737cf735002e9bf74859c915444452f835 (diff) | |
download | trackermap-server-a70f478740514e6e60ffbe49906a9c6150b2ec99.tar.gz trackermap-server-a70f478740514e6e60ffbe49906a9c6150b2ec99.tar.bz2 trackermap-server-a70f478740514e6e60ffbe49906a9c6150b2ec99.zip |
Refactoring - tabs to spaces and naming conventions
Diffstat (limited to 'web/app/view/state/StateController.js')
-rw-r--r-- | web/app/view/state/StateController.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/state/StateController.js b/web/app/view/state/StateController.js index 6f222f6a8..685805418 100644 --- a/web/app/view/state/StateController.js +++ b/web/app/view/state/StateController.js @@ -63,7 +63,7 @@ Ext.define('Traccar.view.state.StateController', { priority: 7, name: strings.positionCourse },*/ - 'odoMeter': { + 'odometer': { priority: 7, name: 'Odometer' }, @@ -92,7 +92,7 @@ Ext.define('Traccar.view.state.StateController', { value = speedUnits.convert(value, unit) + ' ' + speedUnits.getUnitName(unit); } - if (key === 'odoMeter') { + if (key === 'odometer') { var distanceUnits = Ext.getStore('DistanceUnits'); var unit = Traccar.getApplication().getUser().get('distanceUnit') || Traccar.getApplication().getServer().get('distanceUnit') || ''; value = distanceUnits.convert(value, unit) + ' ' + distanceUnits.getUnitName(unit); |