From 7ae6754ffdfd9ce072e659108a42fff402c97ef8 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 17 Apr 2016 11:24:49 +1200 Subject: Fix JavaScript code style issues --- web/app/view/Devices.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'web/app/view') diff --git a/web/app/view/Devices.js b/web/app/view/Devices.js index 366831849..4131ba6f9 100644 --- a/web/app/view/Devices.js +++ b/web/app/view/Devices.js @@ -27,7 +27,7 @@ Ext.define('Traccar.view.Devices', { controller: 'devices', rootVisible: false, - initComponent: function() { + initComponent: function () { this.store = Ext.create('Ext.data.ChainedStore', { source: 'Devices', groupField: 'groupId' @@ -75,7 +75,7 @@ Ext.define('Traccar.view.Devices', { if (Ext.isNumber(this.getValue())) { this.up('grid').store.filter({ id: 'groupFilter', - filterFn: function(item) { + filterFn: function (item) { var groupId, group, groupStore, filter = true; groupId = item.get('groupId'); groupStore = Ext.getStore('Groups'); @@ -96,7 +96,7 @@ Ext.define('Traccar.view.Devices', { return !filter; }, scope: this - }); + }); } else { this.up('grid').store.removeFilter('groupFilter'); } -- cgit v1.2.3