From: Jaroslav Kysela Date: Mon, 26 Mar 2012 08:50:41 +0000 (+0200) Subject: Javascript fix the improved mux-copy operation. The previous version X-Git-Tag: 2.99~1^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc74a18b2874dffa351e2cd8d8c379bc54ba5b14;p=thirdparty%2Ftvheadend.git Javascript fix the improved mux-copy operation. The previous version did not work with the DVB-T tuners (without satconf). Signed-off-by: Jaroslav Kysela --- diff --git a/src/webui/static/app/dvb.js b/src/webui/static/app/dvb.js index 1fee1bcc1..5b7d05768 100644 --- a/src/webui/static/app/dvb.js +++ b/src/webui/static/app/dvb.js @@ -227,6 +227,37 @@ tvheadend.dvb_muxes = function(adapterData, satConfStore) { satConf = null; } + var mitems = [ + new Ext.form.ComboBox({ + store: targetStore, + fieldLabel: 'Target adapter', + name: 'targetadapter', + hiddenName: 'targetID', + editable: false, + allowBlank: false, + triggerAction: 'all', + mode: 'remote', + displayField:'name', + valueField:'identifier', + emptyText: 'Select target adapter...', + listeners: { + 'select': function(combo, value) { + if (satConf) { + satConf.emptyText = 'Select satellite configuration...'; + satConf.clearValue(); + targetSatConfStore.baseParams = {adapter: combo.value}; + targetSatConfStore.load(); + satConf.focus(); + satConf.expand(); + } + } + } + }), + ]; + + if (satConf) + mitems.push(satConf); + var panel = new Ext.FormPanel({ frame:true, border:true, @@ -234,35 +265,7 @@ tvheadend.dvb_muxes = function(adapterData, satConfStore) { labelAlign: 'right', labelWidth: 150, defaultType: 'textfield', - items: [ - - new Ext.form.ComboBox({ - store: targetStore, - fieldLabel: 'Target adapter', - name: 'targetadapter', - hiddenName: 'targetID', - editable: false, - allowBlank: false, - triggerAction: 'all', - mode: 'remote', - displayField:'name', - valueField:'identifier', - emptyText: 'Select target adapter...', - listeners: { - 'select': function(combo, value) { - if (satConf) { - satConf.emptyText = 'Select satellite configuration...'; - satConf.clearValue(); - targetSatConfStore.baseParams = {adapter: combo.value}; - targetSatConfStore.load(); - satConf.focus(); - satConf.expand(); - } - } - } - }), - satConf, - ], + items: mitems, buttons: [{ text: 'Copy', handler: doCopy