From 6dd4cb71561be3d41da3d10b810fb078f10e79b3 Mon Sep 17 00:00:00 2001 From: Evgeny S Maksimov Date: Wed, 27 Feb 2019 21:32:56 +0300 Subject: Code-style fix --- web/app/view/edit/DevicesController.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'web') diff --git a/web/app/view/edit/DevicesController.js b/web/app/view/edit/DevicesController.js index f4e46153..16e54b21 100644 --- a/web/app/view/edit/DevicesController.js +++ b/web/app/view/edit/DevicesController.js @@ -110,10 +110,10 @@ Ext.define('Traccar.view.edit.DevicesController', { this.lookupReference('deviceCommandButton').setDisabled(empty || readonly); }, - onSelectionChange: function (el, record) { - if (record && record.length) { - this.updateButtons(record); - this.fireEvent('selectdevice', record[0], true); + onSelectionChange: function (el, records) { + if (records && records.length) { + this.updateButtons(records); + this.fireEvent('selectdevice', records[0], true); } }, -- cgit v1.2.3