diff options
Diffstat (limited to 'web/app/view/device/DeviceController.js')
-rw-r--r-- | web/app/view/device/DeviceController.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/web/app/view/device/DeviceController.js b/web/app/view/device/DeviceController.js index 158f6c52c..ba9eabb5a 100644 --- a/web/app/view/device/DeviceController.js +++ b/web/app/view/device/DeviceController.js @@ -25,6 +25,16 @@ Ext.define('Traccar.view.device.DeviceController', { 'Traccar.view.user.User' ], + config: { + listen: { + controller: { + '*': { + selectReport: 'selectReport' + } + } + } + }, + init: function() { if (Traccar.getApplication().getUser().get('admin')) { this.lookupReference('settingsServerButton').setDisabled(false); @@ -104,6 +114,12 @@ Ext.define('Traccar.view.device.DeviceController', { xtype: 'user-view' } }).show(); + }, + + selectReport: function(position) { + if (position !== undefined) { + this.getView().getSelectionModel().deselectAll(); + } } }); |