aboutsummaryrefslogtreecommitdiff
path: root/web/app/AttributeFormatter.js
diff options
context:
space:
mode:
authorninioe <ninioe@gmail.com>2016-07-13 15:29:39 +0300
committerninioe <ninioe@gmail.com>2016-07-13 15:29:39 +0300
commit0e7cb81693a1067af81b6d74544f16d01fce8b6e (patch)
tree2c7069e1d124406d86a7abfa02e3cb7bae4fdf37 /web/app/AttributeFormatter.js
parentd045c1e2174146ddc8ad8b2ef4442863f3d84a11 (diff)
downloadtrackermap-server-0e7cb81693a1067af81b6d74544f16d01fce8b6e.tar.gz
trackermap-server-0e7cb81693a1067af81b6d74544f16d01fce8b6e.tar.bz2
trackermap-server-0e7cb81693a1067af81b6d74544f16d01fce8b6e.zip
changes Anton asked me
Diffstat (limited to 'web/app/AttributeFormatter.js')
-rw-r--r--web/app/AttributeFormatter.js6
1 files changed, 2 insertions, 4 deletions
diff --git a/web/app/AttributeFormatter.js b/web/app/AttributeFormatter.js
index 51b479b9a..253dadb53 100644
--- a/web/app/AttributeFormatter.js
+++ b/web/app/AttributeFormatter.js
@@ -34,7 +34,6 @@ Ext.define('Traccar.AttributeFormatter', {
return Ext.getStore('DistanceUnits').formatValue(value, Traccar.app.getPreference('distanceUnit'));
},
- //added by Erez
alarmFormatter: function (attributes) {
if (attributes instanceof Object) {
if (attributes.hasOwnProperty('alarm')){
@@ -48,7 +47,6 @@ Ext.define('Traccar.AttributeFormatter', {
return '';
},
- //added by Erez
alarmTypeFormatter: function (attributes) {
var alatmType = '';
if (attributes instanceof Object) {
@@ -86,9 +84,9 @@ Ext.define('Traccar.AttributeFormatter', {
return this.courseFormatter;
} else if (key === 'distance' || key === 'odometer') {
return this.distanceFormatter;
- } else if (key === 'alarm') {//added by Erez
+ } else if (key === 'alarm') {
return this.alarmFormatter;
- } else if (key === 'alarm-type') {//added by Erez
+ } else if (key === 'alarm-type') {
return this.alarmTypeFormatter;
} else {
return this.defaultFormatter;