From c942080a2054c01b9c70fabe29f86302aed66c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Tue, 22 Apr 2008 20:23:22 +0000 Subject: [PATCH] Fix so we can actually add new muxes on empty adapters :) --- ajaxui/ajaxui_config_dvb.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/ajaxui/ajaxui_config_dvb.c b/ajaxui/ajaxui_config_dvb.c index 0c96944f..f4cee2fa 100644 --- a/ajaxui/ajaxui_config_dvb.c +++ b/ajaxui/ajaxui_config_dvb.c @@ -680,16 +680,16 @@ ajax_adaptermuxlist(http_connection_t *hc, http_reply_t *hr, "mux_sel_do('dvbadapterdelmux/%s', '', '', true)", tda->tda_identifier); tcp_qprintf(tq, "\r\n"); - - if(tda->tda_fe_info != NULL) { - tcp_qprintf(tq, "
"); - tcp_qprintf(tq, "
 
"); - ajax_a_jsfuncf(tq, "Add new...", - "new Ajax.Updater('servicepane', " - "'/ajax/dvbadapteraddmux/%s', " - "{method: 'get', evalScripts: true})\""); - tcp_qprintf(tq, "
\r\n"); - } + } + if(tda->tda_fe_info != NULL) { + tcp_qprintf(tq, "
"); + tcp_qprintf(tq, "
"); + ajax_a_jsfuncf(tq, "Add new...", + "new Ajax.Updater('servicepane', " + "'/ajax/dvbadapteraddmux/%s', " + "{method: 'get', evalScripts: true})\"", + tda->tda_identifier); + tcp_qprintf(tq, "
\r\n"); } http_output_html(hc, hr); return 0;