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 | |
parent | 077b5a737cf735002e9bf74859c915444452f835 (diff) | |
download | traccar-server-a70f478740514e6e60ffbe49906a9c6150b2ec99.tar.gz traccar-server-a70f478740514e6e60ffbe49906a9c6150b2ec99.tar.bz2 traccar-server-a70f478740514e6e60ffbe49906a9c6150b2ec99.zip |
Refactoring - tabs to spaces and naming conventions
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/report/Report.js | 4 | ||||
-rw-r--r-- | web/app/view/state/StateController.js | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/web/app/view/report/Report.js b/web/app/view/report/Report.js index 6c43b9463..5466c7887 100644 --- a/web/app/view/report/Report.js +++ b/web/app/view/report/Report.js @@ -91,8 +91,8 @@ Ext.define('Traccar.view.report.Report', { } }, /* { text: strings.positionCourse, dataIndex: 'course', flex: 1 }, */ - { text: 'Odometer', dataIndex: 'odoMeter', flex: 1, - renderer: function(value) { + { text: 'Odometer', dataIndex: 'odometer', flex: 1, + renderer: function(value) { var distanceUnits = Ext.getStore('DistanceUnits'); var unit = Traccar.getApplication().getUser().get('distanceUnit') || Traccar.getApplication().getServer().get('distanceUnit') || ''; return distanceUnits.convert(value, unit) + ' ' + distanceUnits.getUnitName(unit); 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); |