Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
WEBUI JS: Add checkField initialization for LovCombo to avoid wrong s…
…haring, fixes #2363
  • Loading branch information
perexg committed Oct 15, 2014
1 parent 1159ba0 commit f064ccc
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/webui/static/app/idnode.js
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit f064ccc

Please sign in to comment.