radio groups set and get Value helper are objects, as they are
expected to be key, value, where key is a field-name of the radio
group and values is the inputValue from the radiobutton to be set.
So ensure we extract only the value in the change event handler, as
we do not want to save the whole object. But on restoring (setValue)
we need to wrap it as object again, else radiogroup won't know what
field we want to set..
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
me.lookupReference('savedUserName').setValue(username);
var vncMode = sp.get('novnc-scaling');
if (vncMode !== undefined) {
- me.lookupReference('noVNCScalingGroup').setValue(vncMode);
+ me.lookupReference('noVNCScalingGroup').setValue({ noVNCScalingField: vncMode });
}
var settings = ['fontSize', 'fontFamily', 'letterSpacing', 'lineHeight'];
listeners: {
change: function(el, newValue, undefined) {
var sp = Ext.state.Manager.getProvider();
- sp.set('novnc-scaling', newValue);
+ sp.set('novnc-scaling', newValue.noVNCScalingField);
}
},
},