aboutsummaryrefslogtreecommitdiff
path: root/web/app/view/edit/DevicesController.js
diff options
context:
space:
mode:
authoralex-petkevich <a@homesite.by>2018-10-25 16:24:52 +0300
committeralex-petkevich <a@homesite.by>2018-10-25 16:24:52 +0300
commitf953873700235a416f69eeed909cd73c59e1f32b (patch)
tree58a555acabc9eb11d99904766fce572a68909b66 /web/app/view/edit/DevicesController.js
parent3df9db8f0a841e5f1020d6797083c73cc68e512c (diff)
downloadtrackermap-web-f953873700235a416f69eeed909cd73c59e1f32b.tar.gz
trackermap-web-f953873700235a416f69eeed909cd73c59e1f32b.tar.bz2
trackermap-web-f953873700235a416f69eeed909cd73c59e1f32b.zip
Fix bug with selecting device second times from the devices grid
Diffstat (limited to 'web/app/view/edit/DevicesController.js')
-rw-r--r--web/app/view/edit/DevicesController.js11
1 files changed, 1 insertions, 10 deletions
diff --git a/web/app/view/edit/DevicesController.js b/web/app/view/edit/DevicesController.js
index c1e46b79..120944b8 100644
--- a/web/app/view/edit/DevicesController.js
+++ b/web/app/view/edit/DevicesController.js
@@ -109,16 +109,7 @@ Ext.define('Traccar.view.edit.DevicesController', {
this.lookupReference('deviceCommandButton').setDisabled(empty || readonly);
},
- onSelectionChange: function (selection, selected) {
- this.updateButtons(selected);
- if (selected.length > 0) {
- this.fireEvent('selectdevice', selected[0], true);
- } else {
- this.fireEvent('deselectfeature');
- }
- },
-
- onClick: function (el, record) {
+ onSelectionChange: function (el, record) {
if (record !== undefined) {
this.updateButtons([record]);
this.fireEvent('selectdevice', record, true);