aboutsummaryrefslogtreecommitdiff
path: root/web/app/Application.js
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-05-31 16:55:00 +0500
committerAbyss777 <abyss@fox5.ru>2017-05-31 16:55:08 +0500
commit35e8f4b4974515733737c5cc1dd439ca47860007 (patch)
tree21f5e7cc17e982e2c5b52682dfac29943e39199d /web/app/Application.js
parent0e598a6232e9cd7188916e06077862d6630a255b (diff)
downloadtrackermap-web-35e8f4b4974515733737c5cc1dd439ca47860007.tar.gz
trackermap-web-35e8f4b4974515733737c5cc1dd439ca47860007.tar.bz2
trackermap-web-35e8f4b4974515733737c5cc1dd439ca47860007.zip
Implement Events panel
Diffstat (limited to 'web/app/Application.js')
-rw-r--r--web/app/Application.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/app/Application.js b/web/app/Application.js
index d73378c5..3f09a0a7 100644
--- a/web/app/Application.js
+++ b/web/app/Application.js
@@ -110,6 +110,13 @@ Ext.define('Traccar.Application', {
}
},
+ showEvents: function (show) {
+ var rootPanel = Ext.getCmp('rootPanel');
+ if (rootPanel) {
+ rootPanel.setActiveItem(show ? 2 : 0);
+ }
+ },
+
setUser: function (data) {
var reader = Ext.create('Ext.data.reader.Json', {
model: 'Traccar.model.User'