Use buttons instead of <a> -tags
This commit is contained in:
parent
d517f22827
commit
e84a00ce07
1 changed files with 8 additions and 7 deletions
|
@ -444,15 +444,16 @@ ajax_cheditor(http_connection_t *hc, http_reply_t *hr,
|
|||
tcp_qprintf(tq, "<hr>\r\n");
|
||||
|
||||
tcp_qprintf(tq, "<div style=\"overflow: auto; width:100%%\">");
|
||||
ajax_a_jsfuncf(tq, "Rename channel...",
|
||||
"channel_rename('%d', '%s');",
|
||||
ch->ch_tag, ch->ch_name);
|
||||
|
||||
tcp_qprintf(tq, " / ");
|
||||
tcp_qprintf(tq,
|
||||
"<input type=\"button\" value=\"Rename...\" "
|
||||
"onClick=\"channel_rename('%d', '%s')\">",
|
||||
ch->ch_tag, ch->ch_name);
|
||||
|
||||
ajax_a_jsfuncf(tq, "Delete channel...",
|
||||
"channel_delete('%d', '%s');",
|
||||
ch->ch_tag, ch->ch_name);
|
||||
tcp_qprintf(tq,
|
||||
"<input type=\"button\" value=\"Delete...\" "
|
||||
"onClick=\"channel_delete('%d', '%s')\">",
|
||||
ch->ch_tag, ch->ch_name);
|
||||
|
||||
tcp_qprintf(tq, "</div>");
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue