WEBUI JS: Add checkField initialization for LovCombo to avoid wrong sharing, fixes #2363

This commit is contained in:
Jaroslav Kysela 2014-10-15 10:26:14 +02:00
parent 1159ba09bc
commit f064cccc79

View file

@ -346,8 +346,10 @@ tvheadend.IdNodeField = function(conf)
/* ComboBox */
if (this.enum) {
cons = Ext.form.ComboBox;
if (this.list)
if (this.list) {
cons = Ext.ux.form.LovCombo;
c['checkField'] = 'checked_' + this.id;
}
/* Combo settings */
c['mode'] = 'local';
@ -499,6 +501,7 @@ tvheadend.idnode_editor_field = function(f, conf)
mode: 'local',
valueField: 'key',
displayField: 'val',
checkField: 'checked_' + f.id,
store: st,
typeAhead: true, // TODO: this does strange things in multi
forceSelection: false,