]>
git.proxmox.com Git - pmg-gui.git/blob - js/Application.js
1 Ext
.define('PMG.Application', {
2 extend
: 'Ext.app.Application',
6 // default fragment for the router
7 defaultToken
: 'pmgDashboard',
15 realignWindows: function() {
16 var modalwindows
= Ext
.ComponentQuery
.query('window[modal]');
17 Ext
.Array
.forEach(modalwindows
, function(item
) {
24 // show login window if not loggedin
25 var loggedin
= Proxmox
.Utils
.authOK();
26 Ext
.on('resize', me
.realignWindows
);
29 if (location
.pathname
=== "/quarantine") {
30 Ext
.create({ xtype
: 'quarantineview' });
32 Ext
.create({ xtype
: 'mainview' });
35 Ext
.create({ xtype
: 'loginview' });
40 Ext
.application('PMG.Application');