allow to set onlineHelp on Proxmox.window.Edit
This commit is contained in:
parent
ca31548b04
commit
c3457485e6
@ -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, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user