aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/DevicesController.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-06-01 10:50:10 +0500
committerAbyss777 <abyss@fox5.ru>2016-06-01 10:50:10 +0500
commitd23c6649970a9ae200bff03135ee409abe5627f3 (patch)
tree93dce64e67ce1ba7a7c0f5e3edcf62e3099948c8 /web/app/view/DevicesController.js
parente6a635ac7a1ef8b674da1a01f024a4a58375e487 (diff)
downloadtrackermap-server-d23c6649970a9ae200bff03135ee409abe5627f3.tar.gz
trackermap-server-d23c6649970a9ae200bff03135ee409abe5627f3.tar.bz2
trackermap-server-d23c6649970a9ae200bff03135ee409abe5627f3.zip
- Handle only specific store update
- Call handler directly
Diffstat (limited to 'web/app/view/DevicesController.js')
-rw-r--r--web/app/view/DevicesController.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js
index 0f8c5249f..df380e2e2 100644
--- a/web/app/view/DevicesController.js
+++ b/web/app/view/DevicesController.js
@@ -32,7 +32,7 @@ Ext.define('Traccar.view.DevicesController', {
}
},
store: {
- '*': {
+ '#Devices': {
update: 'onUpdateDevice'
}
}
@@ -124,7 +124,7 @@ Ext.define('Traccar.view.DevicesController', {
}
},
- onUpdateDevice: function () {
- this.view.fireEvent('selectionchange',this.view.getSelectionModel());
+ onUpdateDevice: function (store, data) {
+ this.onSelectionChange(this.view.getSelectionModel());
}
});