Commit 5e8c9a28 authored by Dietmar Maurer's avatar Dietmar Maurer

always use PVE.Utils.openConoleWindow

parent a69598fd
...@@ -320,14 +320,7 @@ Ext.define('PVE.KVMConsole', { ...@@ -320,14 +320,7 @@ Ext.define('PVE.KVMConsole', {
{ {
text: gettext('Console'), text: gettext('Console'),
handler: function() { handler: function() {
var url = Ext.urlEncode({ PVE.Utils.openConoleWindow('kvm', me.vmid, me.nodename);
console: 'kvm',
vmid: me.vmid,
node: me.nodename
});
var nw = window.open("?" + url, '_blank',
"innerWidth=745,innerheight=427");
nw.focus();
} }
} }
]; ];
...@@ -421,14 +414,7 @@ Ext.define('PVE.OpenVZConsole', { ...@@ -421,14 +414,7 @@ Ext.define('PVE.OpenVZConsole', {
{ {
text: gettext('Console'), text: gettext('Console'),
handler: function() { handler: function() {
var url = Ext.urlEncode({ PVE.Utils.openConoleWindow('openvz', me.vmid, me.nodename);
console: 'openvz',
vmid: me.vmid,
node: me.nodename
});
var nw = window.open("?" + url, '_blank',
"innerWidth=745,innerheight=427");
nw.focus();
} }
} }
]; ];
...@@ -469,13 +455,7 @@ Ext.define('PVE.Shell', { ...@@ -469,13 +455,7 @@ Ext.define('PVE.Shell', {
{ {
text: gettext('Shell'), text: gettext('Shell'),
handler: function() { handler: function() {
var url = Ext.urlEncode({ PVE.Utils.openConoleWindow('shell', undefined, me.nodename);
console: 'shell',
node: me.nodename
});
var nw = window.open("?" + url, '_blank',
"innerWidth=745,innerheight=427");
nw.focus();
} }
} }
]; ];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment