aboutsummaryrefslogtreecommitdiff
path: root/web/app/AttributeFormatter.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 20:27:15 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2015-10-03 20:27:15 +1300
commit8782eeec561e490b4262ba8983e69623daaf5845 (patch)
tree6cb8c6ccb1b4db249133d71fc521155f63b241ca /web/app/AttributeFormatter.js
parent458809c4ee29e3410686bf6d8c80c746caf9724f (diff)
downloadtrackermap-server-8782eeec561e490b4262ba8983e69623daaf5845.tar.gz
trackermap-server-8782eeec561e490b4262ba8983e69623daaf5845.tar.bz2
trackermap-server-8782eeec561e490b4262ba8983e69623daaf5845.zip
Add space after function keyword
Diffstat (limited to 'web/app/AttributeFormatter.js')
-rw-r--r--web/app/AttributeFormatter.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/web/app/AttributeFormatter.js b/web/app/AttributeFormatter.js
index 2e61dd8c2..b4720be61 100644
--- a/web/app/AttributeFormatter.js
+++ b/web/app/AttributeFormatter.js
@@ -17,24 +17,24 @@
Ext.define('Traccar.AttributeFormatter', {
singleton: true,
- coordinateFormatter: function(value) {
+ coordinateFormatter: function (value) {
return value.toFixed(6);
},
- speedFormatter: function(value) {
+ speedFormatter: function (value) {
return Ext.getStore('SpeedUnits').formatValue(value, Traccar.app.getPreference('speedUnit'));
},
- courseFormatter: function(value) {
+ courseFormatter: function (value) {
var courseValues = ['N', 'NE', 'E', 'SE', 'S', 'SW', 'W', 'NW'];
return courseValues[Math.floor(value / 45)];
},
- distanceFormatter: function(value) {
+ distanceFormatter: function (value) {
return Ext.getStore('DistanceUnits').formatValue(value, Traccar.app.getPreference('distanceUnit'));
},
- defaultFormatter: function(value) {
+ defaultFormatter: function (value) {
if (typeof value === 'number') {
return value.toFixed(2);
} else if (typeof value === 'boolean') {
@@ -45,7 +45,7 @@ Ext.define('Traccar.AttributeFormatter', {
return value;
},
- getFormatter: function(key) {
+ getFormatter: function (key) {
if (key === 'latitude' || key === 'longitude') {
return this.coordinateFormatter;
} else if (key === 'speed') {