diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-10-04 12:49:33 (EDT) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-10-04 12:49:33 (EDT) |
commit | ae43c369a94016091f168b60a9f0ce7ece8f208d (patch) | |
tree | dc117a1d35dba5c9107a6e9815e94181c18f5fe7 /src | |
parent | 7ca88f63570c5d70dee8826722df37085d5f73a0 (diff) | |
download | marquee-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.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\"" : ""); } |