mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-09 23:15:14 +00:00
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 ];
|
me.buttons = [ submitBtn, resetBtn ];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (inputPanel && inputPanel.onlineHelp) {
|
var onlineHelp = me.onlineHelp;
|
||||||
var helpButton = Ext.create('PVE.button.Help');
|
if (!onlineHelp && inputPanel && inputPanel.onlineHelp) {
|
||||||
|
onlineHelp = inputPanel.onlineHelp;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (onlineHelp) {
|
||||||
|
var helpButton = Ext.create('Proxmox.button.Help');
|
||||||
me.buttons.unshift(helpButton, '->');
|
me.buttons.unshift(helpButton, '->');
|
||||||
Ext.GlobalEvents.fireEvent('pveShowHelp', items[0].onlineHelp);
|
Ext.GlobalEvents.fireEvent('proxmoxShowHelp', onlineHelp);
|
||||||
}
|
}
|
||||||
|
|
||||||
Ext.applyIf(me, {
|
Ext.applyIf(me, {
|
||||||
|
Loading…
Reference in New Issue
Block a user