Use buttons instead of a-links
This commit is contained in:
parent
798634bcce
commit
e01b06d7d6
2 changed files with 19 additions and 40 deletions
|
@ -725,30 +725,23 @@ ajax_adaptermuxlist(http_connection_t *hc, http_reply_t *hr,
|
|||
ajax_table_bottom(&ta);
|
||||
|
||||
tcp_qprintf(tq, "<hr><div style=\"overflow: auto; width: 100%\">");
|
||||
tcp_qprintf(tq, "<div class=\"infoprefix\">Select:</div><div>");
|
||||
ajax_a_jsfuncf(tq, "All", "mux_sel_all();");
|
||||
tcp_qprintf(tq, " / ");
|
||||
ajax_a_jsfuncf(tq, "None", "mux_sel_none();");
|
||||
tcp_qprintf(tq, " / ");
|
||||
ajax_a_jsfuncf(tq, "Invert", "mux_sel_invert();");
|
||||
tcp_qprintf(tq, "</div></div>\r\n");
|
||||
|
||||
tcp_qprintf(tq, "<div style=\"overflow: auto; width: 100%\">");
|
||||
tcp_qprintf(tq, "<div class=\"infoprefix\"> </div><div>");
|
||||
ajax_a_jsfuncf(tq, "Delete selected",
|
||||
ajax_button(tq, "Select all", "mux_sel_all()");
|
||||
ajax_button(tq, "Select none", "mux_sel_none()");
|
||||
ajax_button(tq, "Delete selected...",
|
||||
"mux_sel_do('dvbadapterdelmux/%s', '', '', true)",
|
||||
tda->tda_identifier);
|
||||
tcp_qprintf(tq, "</div></div>\r\n");
|
||||
tcp_qprintf(tq, "</div>\r\n");
|
||||
}
|
||||
if(tda->tda_fe_info != NULL) {
|
||||
tcp_qprintf(tq, "<hr><div style=\"overflow: auto; width: 100%\">");
|
||||
tcp_qprintf(tq, "<div>");
|
||||
ajax_a_jsfuncf(tq, "Add new...",
|
||||
"new Ajax.Updater('servicepane', "
|
||||
"'/ajax/dvbadapteraddmux/%s', "
|
||||
"{method: 'get', evalScripts: true})\"",
|
||||
tda->tda_identifier);
|
||||
tcp_qprintf(tq, "</div></div>\r\n");
|
||||
|
||||
ajax_button(tq, "Add new mux...",
|
||||
"new Ajax.Updater('servicepane', "
|
||||
"'/ajax/dvbadapteraddmux/%s', "
|
||||
"{method: 'get', evalScripts: true})\"",
|
||||
tda->tda_identifier);
|
||||
tcp_qprintf(tq, "</div>\r\n");
|
||||
}
|
||||
http_output_html(hc, hr);
|
||||
return 0;
|
||||
|
|
|
@ -208,30 +208,16 @@ ajax_transport_build_list(http_connection_t *hc, tcp_queue_t *tq,
|
|||
|
||||
tcp_qprintf(tq, "<div style=\"overflow: auto; width: 100%\">");
|
||||
|
||||
tcp_qprintf(tq, "<div class=\"infoprefix\">Select:</div><div>");
|
||||
ajax_button(tq, "Select all", "select_all()");
|
||||
ajax_button(tq, "Select none", "select_none()");
|
||||
|
||||
ajax_a_jsfuncf(tq, "All", "select_all();");
|
||||
tcp_qprintf(tq, " / ");
|
||||
ajax_a_jsfuncf(tq, "None", "select_none();");
|
||||
tcp_qprintf(tq, " / ");
|
||||
ajax_a_jsfuncf(tq, "Invert", "select_invert();");
|
||||
tcp_qprintf(tq, " / ");
|
||||
ajax_a_jsfuncf(tq, "All TV-services", "select_tv();");
|
||||
tcp_qprintf(tq, " / ");
|
||||
ajax_a_jsfuncf(tq, "All uncrypted TV-services", "select_tv_nocrypt();");
|
||||
// tcp_qprintf(tq, "</div>\r\n");
|
||||
//tcp_qprintf(tq, "<div style=\"overflow: auto; width: 100%\">");
|
||||
|
||||
tcp_qprintf(tq, "</div></div>\r\n");
|
||||
|
||||
tcp_qprintf(tq, "<div style=\"overflow: auto; width: 100%\">");
|
||||
tcp_qprintf(tq, "<div class=\"infoprefix\"> </div><div>");
|
||||
|
||||
ajax_a_jsfuncf(tq, "Map selected", "selected_do('map');");
|
||||
tcp_qprintf(tq, " / ");
|
||||
ajax_a_jsfuncf(tq, "Unmap selected", "selected_do('unmap');");
|
||||
tcp_qprintf(tq, " / ");
|
||||
ajax_a_jsfuncf(tq, "Test and map selected", "selected_do('probe');");
|
||||
|
||||
tcp_qprintf(tq, "</div></div>");
|
||||
ajax_button(tq, "Map selected", "selected_do('map');");
|
||||
ajax_button(tq, "Unmap selected", "selected_do('unmap');");
|
||||
ajax_button(tq, "Test and map selected", "selected_do('probe');");
|
||||
tcp_qprintf(tq, "</div>");
|
||||
|
||||
tcp_qprintf(tq, "</form>");
|
||||
return 0;
|
||||
|
|
Loading…
Add table
Reference in a new issue