]> git.proxmox.com Git - pmg-gui.git/commitdiff
jslint: fix type confusion of handler
authorDominik Csapak <d.csapak@proxmox.com>
Fri, 15 Dec 2017 07:28:14 +0000 (08:28 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 15 Dec 2017 08:01:04 +0000 (09:01 +0100)
Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
js/ServerStatus.js

index 0887e0f342f65ce54e62e4f48854309a274a3019..6957388f623a3929528e62fcc23e3d7f0d48ca61 100644 (file)
@@ -20,6 +20,10 @@ Ext.define('PMG.ServerStatus', {
     controller: {
        xclass: 'Ext.app.ViewController',
 
+       openConsole: function() {
+           Proxmox.Utils.openXtermJsViewer('shell', 0, Proxmox.NodeName);
+       },
+
        nodeCommand: function(cmd) {
            var me = this.getView();
            Proxmox.Utils.API2Request({
@@ -46,9 +50,7 @@ Ext.define('PMG.ServerStatus', {
        {
            text: gettext("Console"),
            iconCls: 'fa fa-terminal',
-           handler: function() {
-               Proxmox.Utils.openXtermJsViewer('shell', 0, Proxmox.NodeName);
-           }
+           handler: 'openConsole'
        },
        {
            xtype: 'proxmoxButton',