[pve-devel] [PATCH pve-manager 3/5] Add support for Help Button in Edit windows
Emmanuel Kasper
e.kasper at proxmox.com
Tue May 31 10:25:27 CEST 2016
---
www/manager6/window/Edit.js | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/www/manager6/window/Edit.js b/www/manager6/window/Edit.js
index 28067a6..b231003 100644
--- a/www/manager6/window/Edit.js
+++ b/www/manager6/window/Edit.js
@@ -238,6 +238,12 @@ Ext.define('PVE.window.Edit', {
me.buttons = [ submitBtn, resetBtn ];
}
+ if (items[0].onlineHelp) {
+ var helpButton = Ext.create('PVE.button.Help');
+ me.buttons.unshift(helpButton, '->');
+ Ext.GlobalEvents.fireEvent('pveShowHelp', items[0].onlineHelp);
+ }
+
Ext.applyIf(me, {
modal: true,
width: twoColumn ? colwidth*2 : colwidth,
--
2.1.4
More information about the pve-devel
mailing list