]>
git.proxmox.com Git - pve-manager.git/blob - www/manager6/VNCConsole.js
1 Ext
.define('PVE.noVncConsole', {
2 extend
: 'Ext.panel.Panel',
3 alias
: 'widget.pveNoVncConsole',
9 consoleType
: undefined, // lxc or kvm
15 initComponent : function() {
19 throw "no node name specified";
22 if (!me
.consoleType
) {
23 throw "no console type specified";
26 if (!me
.vmid
&& me
.consoleType
!== 'shell') {
27 throw "no VM ID specified";
30 // always use same iframe, to avoid running several noVnc clients
31 // at same time (to avoid performance problems)
32 var box
= Ext
.create('Ext.ux.IFrame', { itemid
: "vncconsole" });
37 activate: function() {
38 var url
= '/?console=' + me
.consoleType
+ '&novnc=1&node=' + me
.nodename
+ '&resize=scale';
40 url
+= '&vmid='+ me
.vmid
;