mirror of
https://git.proxmox.com/git/proxmox-widget-toolkit
synced 2025-05-11 13:51:42 +00:00
window/Edit.js: query for inputpanel
Because access to item[0] return the config object (not the real object).
This commit is contained in:
parent
81244aa1fe
commit
1b07a95ac8
@ -204,6 +204,8 @@ Ext.define('Proxmox.window.Edit', {
|
||||
items: items
|
||||
});
|
||||
|
||||
var inputPanel = me.formPanel.down('inputpanel');
|
||||
|
||||
var form = me.formPanel.getForm();
|
||||
|
||||
var submitText;
|
||||
@ -250,8 +252,8 @@ Ext.define('Proxmox.window.Edit', {
|
||||
colwidth += me.fieldDefaults.labelWidth - 100;
|
||||
}
|
||||
|
||||
|
||||
var twoColumn = items[0].column1 || items[0].column2;
|
||||
var twoColumn = inputPanel &&
|
||||
(inputPanel.column1 || inputPanel.column2);
|
||||
|
||||
if (me.subject && !me.title) {
|
||||
me.title = Proxmox.Utils.dialog_title(me.subject, me.create, me.isAdd);
|
||||
@ -263,7 +265,7 @@ Ext.define('Proxmox.window.Edit', {
|
||||
me.buttons = [ submitBtn, resetBtn ];
|
||||
}
|
||||
|
||||
if (items[0].onlineHelp) {
|
||||
if (inputPanel && inputPanel.onlineHelp) {
|
||||
var helpButton = Ext.create('PVE.button.Help');
|
||||
me.buttons.unshift(helpButton, '->');
|
||||
Ext.GlobalEvents.fireEvent('pveShowHelp', items[0].onlineHelp);
|
||||
|
Loading…
Reference in New Issue
Block a user