From 19d51272931f92c5c8a139e8aa8f9aa0314f6c61 Mon Sep 17 00:00:00 2001 From: ninioe Date: Wed, 20 Jul 2016 08:23:40 +0300 Subject: jshint & jscs cleanup --- web/app/view/Devices.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'web/app/view') diff --git a/web/app/view/Devices.js b/web/app/view/Devices.js index 77d796b1e..31d22ed2a 100644 --- a/web/app/view/Devices.js +++ b/web/app/view/Devices.js @@ -64,16 +64,15 @@ Ext.define('Traccar.view.Devices', { tooltipType: 'title', pressed : true, enableToggle: true, - listeners:{ - toggle: function(button, pressed){ - if(pressed){ + listeners: { + toggle: function (button, pressed) { + if (pressed) { button.setGlyph('xf0a2@FontAwesome'); - } - else { + } else { button.setGlyph('xf1f7@FontAwesome'); } }, - scope:this + scope: this } }, { id: 'deviceFollowButton', -- cgit v1.2.3