diff options
-rw-r--r-- | src/html.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -545,7 +545,7 @@ gchar * mq_html_input_radio(const gchar *name, const gchar *label, gboolean checked) { return g_strdup_printf("<label for=\"%s\"><span>%s</span>" - "<input type=\"checkbox\" name=\"%s\" id=\"%s\"%s></label>\n", + "<input type=\"radio\" name=\"%s\" id=\"%s\"%s></label>\n", name, label, name, name, checked ? " checked=\"checked\"" : ""); } @@ -553,6 +553,6 @@ gchar * mq_html_input_checkbox(const gchar *name, const gchar *label, gboolean checked) { return g_strdup_printf("<label for=\"%s\"><span>%s</span>" - "<input type=\"radio\" name=\"%s\" id=\"%s\"%s></label>\n", + "<input type=\"checkbox\" name=\"%s\" id=\"%s\"%s></label>\n", name, label, name, name, checked ? " checked=\"checked\"" : ""); } |