diff options
author | Abyss777 <abyss@fox5.ru> | 2017-08-01 16:03:58 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-08-01 16:03:58 +0500 |
commit | 36ac724810ff77ec4070ed8f20ba7336204e384c (patch) | |
tree | 9dd7d15aee5d658df740d9bac17c86af439ebe7e /web | |
parent | 9f7b998c50b304205858973fe542b49b0e705be5 (diff) | |
download | trackermap-web-36ac724810ff77ec4070ed8f20ba7336204e384c.tar.gz trackermap-web-36ac724810ff77ec4070ed8f20ba7336204e384c.tar.bz2 trackermap-web-36ac724810ff77ec4070ed8f20ba7336204e384c.zip |
Correctly handle boolean string
Diffstat (limited to 'web')
-rw-r--r-- | web/app/controller/Root.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index 27455b39..5b0c8817 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -125,9 +125,9 @@ Ext.define('Traccar.controller.Root', { Ext.create('widget.mainMobile'); } else { main = Ext.create('widget.main'); - if (Traccar.app.getAttributePreference('web.disableReport', false)) { + if (Traccar.app.getAttributePreference('web.disableReport', false).toString() === 'true') { for (i = 0; i < main.items.length; i++) { - if (main.items.items[i].xtype === 'reportView') { + if (main.items.items[i].isXType('reportView')) { main.items.items[i].hide(); break; } |