]>
git.proxmox.com Git - proxmox-backup.git/blob - www/Application.js
2 Ext
.define('PBS.Application', {
3 extend
: 'Ext.app.Application',
14 realignWindows: function() {
15 var modalwindows
= Ext
.ComponentQuery
.query('window[modal]');
16 Ext
.Array
.forEach(modalwindows
, function(item
) {
23 Proxmox
.Utils
.authClear();
24 me
.changeView('loginview', true);
27 changeView: function(view
, skipCheck
) {
32 if (me
.currentView
!= undefined) {
33 me
.currentView
.destroy();
36 me
.currentView
= Ext
.create({
39 if (skipCheck
!== true) {
41 // Proxmox.Utils.checked_command(function() {}); // display subscription status
49 Ext
.on('resize', me
.realignWindows
);
51 var provider
= new Ext
.state
.LocalStorageProvider({ prefix
: 'ext-pbs-' });
52 Ext
.state
.Manager
.setProvider(provider
);
54 // show login window if not loggedin
55 var loggedin
= Proxmox
.Utils
.authOK();
57 me
.changeView('loginview', true);
59 me
.changeView('mainview', true);
64 Ext
.application('PBS.Application');