]> git.proxmox.com Git - pmg-gui.git/commitdiff
replace novnc with xtermjs
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 11 Dec 2017 13:30:54 +0000 (14:30 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Mon, 11 Dec 2017 13:50:03 +0000 (14:50 +0100)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
js/ServerAdministration.js
js/ServerStatus.js
js/Utils.js

index 8f0936099a15cae966924c8a0bb863c44cfd0e69..723757878c6b651ef291df92a0589ea166e8c3d8 100644 (file)
@@ -42,7 +42,7 @@ Ext.define('PMG.ServerAdministration', {
                disabled: true,
                text: gettext('Upgrade'),
                handler: function() {
-                   PMG.Utils.openVNCViewer('upgrade', Proxmox.NodeName);
+                   Proxmox.Utils.openXtermJsViewer('upgrade', 0, Proxmox.NodeName);
                }
            },
            itemId: 'updates',
index 8ff793b796e96cd03cda55d5f5ca8c66e83a3ded..de85050c162de2c2fcf41d0f68f1d571b4fca618 100644 (file)
@@ -21,7 +21,7 @@ Ext.define('PMG.ServerStatus', {
        {
            text: gettext("Console"),
            handler: function() {
-               PMG.Utils.openVNCViewer('shell', Proxmox.NodeName);
+               Proxmox.Utils.openXtermJsViewer('shell', 0, Proxmox.NodeName);
            }
        },
        '->',
index 43558e7475cb1d23b3a2d3947434bb6a98abaed2..dbc3e78f77d84d0cbf4e0d7e1b1a05116d90e048 100644 (file)
@@ -627,17 +627,6 @@ Ext.define('PMG.Utils', {
        }
     },
 
-    openVNCViewer: function(consoletype, nodename) {
-       var url = Ext.urlEncode({
-           console: consoletype, // upgrade or shell
-           novnc: 1,
-           node: nodename
-       });
-       var nw = window.open("?" + url, '_blank',
-                            "innerWidth=745,innerheight=427");
-       nw.focus();
-    },
-
     updateLoginData: function(data) {
        Proxmox.CSRFPreventionToken = data.CSRFPreventionToken;
        Proxmox.UserName = data.username;