diff options
author | Abyss777 <abyss@fox5.ru> | 2016-05-30 15:04:51 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-05-31 09:37:04 +0500 |
commit | 279948e95f21ffed7f890e5253693a307953d255 (patch) | |
tree | 8f2f39a569ddafd55e87fc791c9db47135ac10f5 /web/app/store/Devices.js | |
parent | 80119f59a0d4b89396f5d7d57ba2d80257a8da79 (diff) | |
download | trackermap-server-279948e95f21ffed7f890e5253693a307953d255.tar.gz trackermap-server-279948e95f21ffed7f890e5253693a307953d255.tar.bz2 trackermap-server-279948e95f21ffed7f890e5253693a307953d255.zip |
Disable command button if device is not online.
Diffstat (limited to 'web/app/store/Devices.js')
-rw-r--r-- | web/app/store/Devices.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/web/app/store/Devices.js b/web/app/store/Devices.js index 8ba513792..5084ff554 100644 --- a/web/app/store/Devices.js +++ b/web/app/store/Devices.js @@ -24,5 +24,11 @@ Ext.define('Traccar.store.Devices', { writer: { writeAllFields: true } + }, + listeners : { + update: function () { + devicesPanel = Ext.getCmp('devicesPanel'); + devicesPanel.fireEvent('selectionchange',devicesPanel.getSelectionModel()); + } } }); |