aboutsummaryrefslogtreecommitdiff
path: root/web
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-07-13 20:14:50 +1200
committerGitHub <noreply@github.com>2016-07-13 20:14:50 +1200
commitd154cb277fe2f7b5dfe6bdaee1a013729bbf22eb (patch)
tree5c51569fc34dae3e58ddc43925521a9e95aa85bb /web
parent312cc919eb1fc31af512fb4f73d5f1fd65b297b8 (diff)
parent5f5c61f17fdf8ecd3e70112b32aaf4a8d04f2335 (diff)
downloadtrackermap-server-d154cb277fe2f7b5dfe6bdaee1a013729bbf22eb.tar.gz
trackermap-server-d154cb277fe2f7b5dfe6bdaee1a013729bbf22eb.tar.bz2
trackermap-server-d154cb277fe2f7b5dfe6bdaee1a013729bbf22eb.zip
Merge pull request #2109 from Abyss777/master
Style fixes in JS code
Diffstat (limited to 'web')
-rw-r--r--web/app/view/AttributesController.js4
-rw-r--r--web/app/view/Notifications.js2
2 files changed, 4 insertions, 2 deletions
diff --git a/web/app/view/AttributesController.js b/web/app/view/AttributesController.js
index 2a9e71849..8e6ab82a4 100644
--- a/web/app/view/AttributesController.js
+++ b/web/app/view/AttributesController.js
@@ -38,6 +38,7 @@ Ext.define('Traccar.view.AttributesController', {
}
}
store.addListener('add', function (store, records, index, eOpts) {
+ var i;
for (i = 0; i < records.length; i++) {
this.getView().record.get('attributes')[records[i].get('name')] = records[i].get('value');
}
@@ -53,7 +54,8 @@ Ext.define('Traccar.view.AttributesController', {
}
}, this);
store.addListener('remove', function (store, records, index, isMove, eOpts) {
- for (var i = 0; i < records.length; i++) {
+ var i;
+ for (i = 0; i < records.length; i++) {
delete this.getView().record.get('attributes')[records[i].get('name')];
}
this.getView().record.dirty = true;
diff --git a/web/app/view/Notifications.js b/web/app/view/Notifications.js
index 996ce3748..5ff5f061f 100644
--- a/web/app/view/Notifications.js
+++ b/web/app/view/Notifications.js
@@ -30,7 +30,7 @@ Ext.define('Traccar.view.Notifications', {
},
viewConfig: {
- markDirty:false
+ markDirty: false
},
columns: [{