summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-10-04 12:49:33 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-10-04 12:49:33 (EDT)
commitae43c369a94016091f168b60a9f0ce7ece8f208d (patch)
treedc117a1d35dba5c9107a6e9815e94181c18f5fe7 /src
parent7ca88f63570c5d70dee8826722df37085d5f73a0 (diff)
downloadmarquee-ae43c369a94016091f168b60a9f0ce7ece8f208d.zip
marquee-ae43c369a94016091f168b60a9f0ce7ece8f208d.tar.gz
marquee-ae43c369a94016091f168b60a9f0ce7ece8f208d.tar.bz2
mq_html_input_radio(), mq_html_input_checkbox(): Fix input types
Diffstat (limited to 'src')
-rw-r--r--src/html.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/html.c b/src/html.c
index 8fcdb24..cc83874 100644
--- a/src/html.c
+++ b/src/html.c
@@ -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\"" : "");
}