diff options
-rw-r--r-- | web/app/view/DevicesController.js | 6 |
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()); } }); |