diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Submit option forms without inline handlers
Diffstat (limited to '')
-rw-r--r--source/ui-stats.c4
1 file changed, 2 insertions, 2 deletions
diff --git a/source/ui-stats.c b/source/ui-stats.c
index d33441b..cabbc3c 100644
--- a/source/ui-stats.c
+++ b/source/ui-stats.c
@@ -405,14 +405,14 @@ void cgit_show_stats(void)
html("<table><tr><td colspan='2'/></tr>");
if (ctx.repo->max_stats > 1) {
html("<tr><td class='label'>Period:</td>");
- html("<td class='ctrl'><select name='period' onchange='this.form.submit();'>");
+ html("<td class='ctrl'><select name='period' data-autosubmit='1'>");
for (i = 0; i < ctx.repo->max_stats; i++)
html_option(fmt("%c", periods[i].code),
periods[i].name, fmt("%c", period->code));
html("</select></td></tr>");
}
html("<tr><td class='label'>Authors:</td>");
- html("<td class='ctrl'><select name='ofs' onchange='this.form.submit();'>");
+ html("<td class='ctrl'><select name='ofs' data-autosubmit='1'>");
html_intoption(10, "10", top);
html_intoption(25, "25", top);
html_intoption(50, "50", top);