[pve-devel] [PATCH manager] IPRefSelector: fix selection

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Apr 1 13:22:11 CEST 2016


move valueField and displayField to class config, else the value
of the selection wont show up when selecting it.

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 www/manager6/form/IPRefSelector.js | 5 +++--
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/www/manager6/form/IPRefSelector.js b/www/manager6/form/IPRefSelector.js
index fbf8a5d..dd0123a 100644
--- a/www/manager6/form/IPRefSelector.js
+++ b/www/manager6/form/IPRefSelector.js
@@ -8,6 +8,9 @@ Ext.define('PVE.form.IPRefSelector', {
 
     ref_type: undefined, // undefined = any [undefined, 'ipset' or 'alias']
 
+    valueField: 'ref',
+    displayField: 'ref',
+
     initComponent: function() {
 	var me = this;
 
@@ -70,8 +73,6 @@ Ext.define('PVE.form.IPRefSelector', {
 
 	Ext.apply(me, {
 	    store: store,
-	    valueField: 'ref',
-	    displayField: 'ref',
             listConfig: { columns: columns }
 	});
 
-- 
2.1.4




More information about the pve-devel mailing list