]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
WEBUI JS: Add checkField initialization for LovCombo to avoid wrong sharing, fixes...
authorJaroslav Kysela <perex@perex.cz>
Wed, 15 Oct 2014 08:26:14 +0000 (10:26 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 15 Oct 2014 08:26:44 +0000 (10:26 +0200)
src/webui/static/app/idnode.js

index cd0d58530b8d333370b87d9c2c6680716e86a767..c2de573efbc8d123a0273f195f6a9ca4a274d4a9 100644 (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,