[pve-devel] [PATCH pve-manager] Apply listConfig parameters when the picker is created, not when the component is created.
Emmanuel Kasper
e.kasper at proxmox.com
Thu Jan 14 11:35:38 CET 2016
This fix the problem that multiple ComboGrids were displaying the same listConfig.
---
www/manager6/form/ComboGrid.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/www/manager6/form/ComboGrid.js b/www/manager6/form/ComboGrid.js
index 5e8612f..6a90860 100644
--- a/www/manager6/form/ComboGrid.js
+++ b/www/manager6/form/ComboGrid.js
@@ -48,6 +48,8 @@ Ext.define('PVE.form.ComboGrid', {
}
}, me.defaultPickerConfig);
+ Ext.apply(config, me.listConfig);
+
var grid = Ext.create('Ext.grid.Panel', config);
// update the grid with the field values when loading
@@ -99,7 +101,6 @@ Ext.define('PVE.form.ComboGrid', {
initComponent: function() {
var me = this;
- Ext.apply(me.defaultPickerConfig, me.listConfig);
me.callParent(arguments);
me.store.on('beforeload', function() {
--
2.1.4
More information about the pve-devel
mailing list