Add support for Help Button in Edit windows

This commit is contained in:
Emmanuel Kasper 2016-06-01 12:15:43 +02:00 committed by Dietmar Maurer
parent 8aa37826e7
commit e9ee100696

View File

@ -238,6 +238,12 @@ Ext.define('PVE.window.Edit', {
me.buttons = [ submitBtn, resetBtn ]; 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, { Ext.applyIf(me, {
modal: true, modal: true,
width: twoColumn ? colwidth*2 : colwidth, width: twoColumn ? colwidth*2 : colwidth,