allow to set onlineHelp on Proxmox.window.Edit

This commit is contained in:
Dietmar Maurer 2017-10-03 13:17:47 +02:00
parent ca31548b04
commit c3457485e6

View File

@ -277,10 +277,15 @@ Ext.define('Proxmox.window.Edit', {
me.buttons = [ submitBtn, resetBtn ];
}
if (inputPanel && inputPanel.onlineHelp) {
var helpButton = Ext.create('PVE.button.Help');
var onlineHelp = me.onlineHelp;
if (!onlineHelp && inputPanel && inputPanel.onlineHelp) {
onlineHelp = inputPanel.onlineHelp;
}
if (onlineHelp) {
var helpButton = Ext.create('Proxmox.button.Help');
me.buttons.unshift(helpButton, '->');
Ext.GlobalEvents.fireEvent('pveShowHelp', items[0].onlineHelp);
Ext.GlobalEvents.fireEvent('proxmoxShowHelp', onlineHelp);
}
Ext.applyIf(me, {