[pve-devel] [PATCH manager 1/3] Allow to set the onlineHelp via a config Object

Emmanuel Kasper e.kasper at proxmox.com
Thu Aug 24 11:45:18 CEST 2017


For cases when we need to set the online help block id of a modal window after the help
button has been configured.
---
 www/manager6/button/HelpButton.js | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/www/manager6/button/HelpButton.js b/www/manager6/button/HelpButton.js
index 8585e4ad..048a7d39 100644
--- a/www/manager6/button/HelpButton.js
+++ b/www/manager6/button/HelpButton.js
@@ -52,6 +52,12 @@ Ext.define('PVE.button.Help', {
 	}
     },
 
+    // helper to set the onlineHelp via a config object
+    setHelpConfig: function(config) {
+	var me = this;
+	me.setOnlineHelp(config.onlineHelp);
+    },
+
     handler: function() {
 	var me = this;
 	var docsURI;
-- 
2.11.0





More information about the pve-devel mailing list