IPRefSelector: fix selection

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@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2016-04-01 13:22:11 +02:00 committed by Dietmar Maurer
parent 394a99831d
commit beec97dc52

View File

@ -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 }
});