diff --git a/src/grid/ObjectGrid.js b/src/grid/ObjectGrid.js index fa5fb92..2ed1dd2 100644 --- a/src/grid/ObjectGrid.js +++ b/src/grid/ObjectGrid.js @@ -67,7 +67,6 @@ Ext.define('Proxmox.grid.ObjectGrid', { editor: { xtype: 'proxmoxWindowEdit', subject: text, - onlineHelp: opts.onlineHelp, fieldDefaults: { labelWidth: opts.labelWidth || 100, }, @@ -84,6 +83,9 @@ Ext.define('Proxmox.grid.ObjectGrid', { }, }, }; + if (opts.onlineHelp) { + me.rows[name].editor.onlineHelp = opts.onlineHelp; + } }, add_text_row: function(name, text, opts) { @@ -100,7 +102,6 @@ Ext.define('Proxmox.grid.ObjectGrid', { editor: { xtype: 'proxmoxWindowEdit', subject: text, - onlineHelp: opts.onlineHelp, fieldDefaults: { labelWidth: opts.labelWidth || 100, }, @@ -115,6 +116,9 @@ Ext.define('Proxmox.grid.ObjectGrid', { }, }, }; + if (opts.onlineHelp) { + me.rows[name].editor.onlineHelp = opts.onlineHelp; + } }, add_boolean_row: function(name, text, opts) { @@ -131,7 +135,6 @@ Ext.define('Proxmox.grid.ObjectGrid', { editor: { xtype: 'proxmoxWindowEdit', subject: text, - onlineHelp: opts.onlineHelp, fieldDefaults: { labelWidth: opts.labelWidth || 100, }, @@ -147,6 +150,9 @@ Ext.define('Proxmox.grid.ObjectGrid', { }, }, }; + if (opts.onlineHelp) { + me.rows[name].editor.onlineHelp = opts.onlineHelp; + } }, add_integer_row: function(name, text, opts) { @@ -163,7 +169,6 @@ Ext.define('Proxmox.grid.ObjectGrid', { editor: { xtype: 'proxmoxWindowEdit', subject: text, - onlineHelp: opts.onlineHelp, fieldDefaults: { labelWidth: opts.labelWidth || 100, }, @@ -180,6 +185,9 @@ Ext.define('Proxmox.grid.ObjectGrid', { }, }, }; + if (opts.onlineHelp) { + me.rows[name].editor.onlineHelp = opts.onlineHelp; + } }, // adds a row that allows editing in a full TextArea that transparently de/encodes as Base64 @@ -198,7 +206,6 @@ Ext.define('Proxmox.grid.ObjectGrid', { editor: { xtype: 'proxmoxWindowEdit', subject: text, - onlineHelp: opts.onlineHelp, fieldDefaults: { labelWidth: opts.labelWidth || 600, }, @@ -209,6 +216,9 @@ Ext.define('Proxmox.grid.ObjectGrid', { }, }, }; + if (opts.onlineHelp) { + me.rows[name].editor.onlineHelp = opts.onlineHelp; + } }, editorConfig: {}, // default config passed to editor