diff options
author | Evgeny S Maksimov <admin@vragam.net> | 2019-02-27 16:12:44 +0300 |
---|---|---|
committer | Evgeny S Maksimov <admin@vragam.net> | 2019-02-27 16:12:44 +0300 |
commit | d80f545048225e4b0d9ab0a60f3bdc74ec997731 (patch) | |
tree | 0a0f74ed7a2b7ad10c54eb22e6296ea33b5b4383 /web/app/view/edit | |
parent | ff0194c227975faa5e2f1eca3007f82c5eefc620 (diff) | |
download | trackermap-web-d80f545048225e4b0d9ab0a60f3bdc74ec997731.tar.gz trackermap-web-d80f545048225e4b0d9ab0a60f3bdc74ec997731.tar.bz2 trackermap-web-d80f545048225e4b0d9ab0a60f3bdc74ec997731.zip |
Small improvements
Diffstat (limited to 'web/app/view/edit')
-rw-r--r-- | web/app/view/edit/DevicesController.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/view/edit/DevicesController.js b/web/app/view/edit/DevicesController.js index 79cbe2fa..82e471c2 100644 --- a/web/app/view/edit/DevicesController.js +++ b/web/app/view/edit/DevicesController.js @@ -111,7 +111,7 @@ Ext.define('Traccar.view.edit.DevicesController', { }, onSelectionChange: function (el, record) { - if (record !== undefined) { + if (record) { this.updateButtons([record]); this.fireEvent('selectdevice', record, true); } @@ -124,7 +124,7 @@ Ext.define('Traccar.view.edit.DevicesController', { }, deselectDevice: function (object) { - if (object !== undefined) { + if (object) { this.deselectFeature(); } }, |