diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-01 16:50:47 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-01 16:50:47 +1200 |
commit | fe99c894c581722ab6aa2b422ed768eb9da19cfb (patch) | |
tree | 21f5e7cc17e982e2c5b52682dfac29943e39199d /web/app/Application.js | |
parent | 0e598a6232e9cd7188916e06077862d6630a255b (diff) | |
parent | 35e8f4b4974515733737c5cc1dd439ca47860007 (diff) | |
download | trackermap-web-fe99c894c581722ab6aa2b422ed768eb9da19cfb.tar.gz trackermap-web-fe99c894c581722ab6aa2b422ed768eb9da19cfb.tar.bz2 trackermap-web-fe99c894c581722ab6aa2b422ed768eb9da19cfb.zip |
Merge pull request #498 from Abyss777/events_panel
Implement Events panel
Diffstat (limited to 'web/app/Application.js')
-rw-r--r-- | web/app/Application.js | 7 |
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' |