aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
authorninioe <ninioe@gmail.com>2016-07-13 16:34:44 +0300
committerninioe <ninioe@gmail.com>2016-07-13 16:34:44 +0300
commit636f6e19b4ae7fbd80ff083498fface8c12ee9c8 (patch)
treeea52e5e042de0ea081ea76f7cd61a9632e8788fe /web/app
parent0e7cb81693a1067af81b6d74544f16d01fce8b6e (diff)
parentd154cb277fe2f7b5dfe6bdaee1a013729bbf22eb (diff)
downloadtrackermap-server-636f6e19b4ae7fbd80ff083498fface8c12ee9c8.tar.gz
trackermap-server-636f6e19b4ae7fbd80ff083498fface8c12ee9c8.tar.bz2
trackermap-server-636f6e19b4ae7fbd80ff083498fface8c12ee9c8.zip
Merge remote-tracking branch 'refs/remotes/tananaev/master'
Diffstat (limited to 'web/app')
-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: [{