aboutsummaryrefslogtreecommitdiff
path: root/web/app
diff options
context:
space:
mode:
authorEvgeny S Maksimov <admin@vragam.net>2019-02-27 18:35:11 +0300
committerEvgeny S Maksimov <admin@vragam.net>2019-02-27 18:35:11 +0300
commit0c17a3d2a9aad83456b0557cf1b87eaf4ffbb675 (patch)
treeed746de7c631280ebce83e9b0ca1c4555268084a /web/app
parentd80f545048225e4b0d9ab0a60f3bdc74ec997731 (diff)
downloadetbsa-traccar-web-0c17a3d2a9aad83456b0557cf1b87eaf4ffbb675.tar.gz
etbsa-traccar-web-0c17a3d2a9aad83456b0557cf1b87eaf4ffbb675.tar.bz2
etbsa-traccar-web-0c17a3d2a9aad83456b0557cf1b87eaf4ffbb675.zip
Bugfix for marker selfselect
Diffstat (limited to 'web/app')
-rw-r--r--web/app/view/edit/Devices.js3
-rw-r--r--web/app/view/edit/DevicesController.js6
2 files changed, 4 insertions, 5 deletions
diff --git a/web/app/view/edit/Devices.js b/web/app/view/edit/Devices.js
index dfa855c..21fdb32 100644
--- a/web/app/view/edit/Devices.js
+++ b/web/app/view/edit/Devices.js
@@ -75,8 +75,7 @@ Ext.define('Traccar.view.edit.Devices', {
},
listeners: {
- rowclick: 'onSelectionChange',
- itemkeyup: 'onSelectionChange'
+ selectionchange: 'onSelectionChange'
},
viewConfig: {
diff --git a/web/app/view/edit/DevicesController.js b/web/app/view/edit/DevicesController.js
index 82e471c..f4e4615 100644
--- a/web/app/view/edit/DevicesController.js
+++ b/web/app/view/edit/DevicesController.js
@@ -111,9 +111,9 @@ Ext.define('Traccar.view.edit.DevicesController', {
},
onSelectionChange: function (el, record) {
- if (record) {
- this.updateButtons([record]);
- this.fireEvent('selectdevice', record, true);
+ if (record && record.length) {
+ this.updateButtons(record);
+ this.fireEvent('selectdevice', record[0], true);
}
},