From d23c6649970a9ae200bff03135ee409abe5627f3 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Wed, 1 Jun 2016 10:50:10 +0500 Subject: - Handle only specific store update - Call handler directly --- web/app/view/DevicesController.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web') 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()); } }); -- cgit v1.2.3