]> git.proxmox.com Git - proxmox-backup.git/blame - www/Utils.js
ui: do *not* close panel when triggering datastore GC
[proxmox-backup.git] / www / Utils.js
CommitLineData
03862a2e
DM
1/*global Proxmox */
2Ext.ns('PBS');
3
4console.log("Starting Backup Server GUI");
5
6Ext.define('PBS.Utils', {
7 singleton: true,
8
34f956bc
DM
9 updateLoginData: function(data) {
10 Proxmox.CSRFPreventionToken = data.CSRFPreventionToken;
11 Proxmox.UserName = data.username;
c99af078 12 //console.log(data.ticket);
f484eed3
DM
13 // fixme: use secure flag once we have TLS
14 //Ext.util.Cookies.set('PBSAuthCookie', data.ticket, null, '/', null, true );
15 Ext.util.Cookies.set('PBSAuthCookie', data.ticket, null, '/', null, false);
34f956bc
DM
16 },
17
03862a2e
DM
18 constructor: function() {
19 var me = this;
20
21 // do whatever you want here
22 }
23});