X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=button%2FHelpButton.js;h=d97a6c4fb72bca8203f4c685696a384b8a000859;hb=05a977a227dab87439b0a84b726440d019e74e6a;hp=8fbcf5c923b31cf33d572ffc77a6be7a9aa47e52;hpb=4f1b9b8c3ba38cf4184f8a605ac1ea856226a5aa;p=proxmox-widget-toolkit.git diff --git a/button/HelpButton.js b/button/HelpButton.js index 8fbcf5c..d97a6c4 100644 --- a/button/HelpButton.js +++ b/button/HelpButton.js @@ -1,9 +1,6 @@ /* help button pointing to an online documentation for components contained in a modal window */ -/*global - proxmoxOnlineHelpInfo -*/ Ext.define('Proxmox.button.Help', { extend: 'Ext.button.Button', xtype: 'proxmoxHelpButton', @@ -27,28 +24,28 @@ Ext.define('Proxmox.button.Help', { }, }, onProxmoxShowHelp: function(helpLink) { - var me = this.getView(); - if (me.listenToGlobalEvent === true) { - me.setOnlineHelp(helpLink); - me.show(); + let view = this.getView(); + if (view.listenToGlobalEvent === true) { + view.setOnlineHelp(helpLink); + view.show(); } }, onProxmoxHideHelp: function() { - var me = this.getView(); - if (me.listenToGlobalEvent === true) { - me.hide(); + let view = this.getView(); + if (view.listenToGlobalEvent === true) { + view.hide(); } }, }, // this sets the link and the tooltip text setOnlineHelp: function(blockid) { - var me = this; + let me = this; - var info = Proxmox.Utils.get_help_info(blockid); + let info = Proxmox.Utils.get_help_info(blockid); if (info) { me.onlineHelp = blockid; - var title = info.title; + let title = info.title; if (info.subtitle) { title += ' - ' + info.subtitle; } @@ -58,13 +55,13 @@ Ext.define('Proxmox.button.Help', { // helper to set the onlineHelp via a config object setHelpConfig: function(config) { - var me = this; + let me = this; me.setOnlineHelp(config.onlineHelp); }, handler: function() { - var me = this; - var docsURI; + let me = this; + let docsURI; if (me.onlineHelp) { docsURI = Proxmox.Utils.get_help_link(me.onlineHelp); @@ -78,8 +75,7 @@ Ext.define('Proxmox.button.Help', { }, initComponent: function() { - /*jslint confusion: true */ - var me = this; + let me = this; me.callParent();