aboutsummaryrefslogtreecommitdiff
path: root/web/app/controller/Root.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-08-09 12:10:23 +0500
committerAbyss777 <abyss@fox5.ru>2017-08-09 12:10:23 +0500
commite7aaac6c970520728bbc0d431498ffac9bb98ad7 (patch)
tree5c775834a432ac7923bc4c8e76035a733086cbc5 /web/app/controller/Root.js
parent36ac724810ff77ec4070ed8f20ba7336204e384c (diff)
downloadetbsa-traccar-web-e7aaac6c970520728bbc0d431498ffac9bb98ad7.tar.gz
etbsa-traccar-web-e7aaac6c970520728bbc0d431498ffac9bb98ad7.tar.bz2
etbsa-traccar-web-e7aaac6c970520728bbc0d431498ffac9bb98ad7.zip
Move hide logic to Main and rename attribute
Diffstat (limited to 'web/app/controller/Root.js')
-rw-r--r--web/app/controller/Root.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js
index 5b0c881..d85102a 100644
--- a/web/app/controller/Root.js
+++ b/web/app/controller/Root.js
@@ -103,7 +103,7 @@ Ext.define('Traccar.controller.Root', {
},
loadApp: function () {
- var attribution, eventId, main, i;
+ var attribution, eventId;
Ext.getStore('Groups').load();
Ext.getStore('Drivers').load();
Ext.getStore('Geofences').load();
@@ -124,15 +124,7 @@ Ext.define('Traccar.controller.Root', {
if (Traccar.app.isMobile()) {
Ext.create('widget.mainMobile');
} else {
- main = Ext.create('widget.main');
- if (Traccar.app.getAttributePreference('web.disableReport', false).toString() === 'true') {
- for (i = 0; i < main.items.length; i++) {
- if (main.items.items[i].isXType('reportView')) {
- main.items.items[i].hide();
- break;
- }
- }
- }
+ Ext.create('widget.main');
}
eventId = Ext.Object.fromQueryString(window.location.search).eventId;
if (eventId) {