diff options
Diffstat (limited to 'web/app/view')
-rw-r--r-- | web/app/view/Devices.js | 11 |
1 files changed, 5 insertions, 6 deletions
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', |