diff options
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' |