aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/DevicesController.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2017-02-03 18:13:47 +0800
committerGitHub <noreply@github.com>2017-02-03 18:13:47 +0800
commita162e2da3e37841a4dab1b3c438992ad01af16db (patch)
treea7fb3c947a83649b978d2c0ad8e598a9d73870a6 /web/app/view/DevicesController.js
parent7b13ffa09f5d080d9a175ee3971c70e8cc07fc69 (diff)
parentcad1c950fd79057ebfd89e362a2b54eb3e588a5c (diff)
downloadetbsa-traccar-web-a162e2da3e37841a4dab1b3c438992ad01af16db.tar.gz
etbsa-traccar-web-a162e2da3e37841a4dab1b3c438992ad01af16db.tar.bz2
etbsa-traccar-web-a162e2da3e37841a4dab1b3c438992ad01af16db.zip
Merge pull request #401 from Abyss777/fix_400
Better cleanup after device remove
Diffstat (limited to 'web/app/view/DevicesController.js')
-rw-r--r--web/app/view/DevicesController.js8
1 files changed, 5 insertions, 3 deletions
diff --git a/web/app/view/DevicesController.js b/web/app/view/DevicesController.js
index e856731..cd85834 100644
--- a/web/app/view/DevicesController.js
+++ b/web/app/view/DevicesController.js
@@ -32,11 +32,11 @@ Ext.define('Traccar.view.DevicesController', {
listen: {
controller: {
'*': {
- selectreport: 'selectReport',
- deselectfeature: 'deselectFeature'
+ selectreport: 'selectReport'
},
'map': {
- selectdevice: 'selectDevice'
+ selectdevice: 'selectDevice',
+ deselectfeature: 'deselectFeature'
}
},
store: {
@@ -101,6 +101,8 @@ Ext.define('Traccar.view.DevicesController', {
this.updateButtons(selected);
if (selected.getCount() > 0) {
this.fireEvent('selectdevice', selected.getLastSelected(), true);
+ } else {
+ this.fireEvent('deselectfeature');
}
},