]> git.proxmox.com Git - pve-manager-legacy.git/commitdiff
Add support for Help Button in Edit windows
authorEmmanuel Kasper <e.kasper@proxmox.com>
Wed, 1 Jun 2016 10:15:43 +0000 (12:15 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Wed, 1 Jun 2016 10:42:36 +0000 (12:42 +0200)
www/manager6/window/Edit.js

index 28067a6fdf31c88e17b063487c9f56d97b9dd541..b23100389c116fef8393d308bdbf877b0b3a381a 100644 (file)
@@ -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,