diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Remove the auto-submitting selects
Diffstat (limited to 'source')
-rw-r--r--source/ui-diff.c8
-rw-r--r--source/ui-shared.c2
-rw-r--r--source/ui-stats.c6
3 files changed, 8 insertions, 8 deletions
diff --git a/source/ui-diff.c b/source/ui-diff.c
index 63c0148..e08b096 100644
--- a/source/ui-diff.c
+++ b/source/ui-diff.c
@@ -578,7 +578,7 @@ void cgit_print_diff_ctrls(void)
html("<tr>");
html("<td class='label'>context:</td>");
html("<td class='ctrl'>");
- html("<select name='context' data-autosubmit='1'>");
+ html("<select name='context'>");
selected = ctx.qry.context;
if (!selected)
selected = DEFAULT_CONTEXT_LINES;
@@ -591,7 +591,7 @@ void cgit_print_diff_ctrls(void)
html("</tr><tr>");
html("<td class='label'>space:</td>");
html("<td class='ctrl'>");
- html("<select name='ignorews' data-autosubmit='1'>");
+ html("<select name='ignorews'>");
html_intoption(0, "include", ctx.qry.ignorews);
html_intoption(1, "ignore", ctx.qry.ignorews);
html("</select>");
@@ -599,14 +599,14 @@ void cgit_print_diff_ctrls(void)
html("</tr><tr>");
html("<td class='label'>mode:</td>");
html("<td class='ctrl'>");
- html("<select name='dt' data-autosubmit='1'>");
+ html("<select name='dt'>");
selected = ctx.qry.has_difftype ? ctx.qry.difftype : ctx.cfg.difftype;
html_intoption(0, "unified", selected);
html_intoption(1, "ssdiff", selected);
html_intoption(2, "stat only", selected);
html("</select></td></tr>");
html("<tr><td></td><td class='ctrl'>");
- html("<noscript><input type='submit' value='reload'></noscript>");
+ html("<input type='submit' value='reload'>");
html("</td></tr></table>");
html("</form>\n");
html("</div>\n");
diff --git a/source/ui-shared.c b/source/ui-shared.c
index 307dba0..a79c291 100644
--- a/source/ui-shared.c
+++ b/source/ui-shared.c
@@ -529,7 +529,7 @@ static void print_header(void)
cgit_add_hidden_formfields(0, 1, ctx.qry.page);
ctx.qry.oid = oid;
ctx.qry.oid2 = oid2;
- html("<select name='h' aria-label='Branch' data-autosubmit='1'>\n");
+ html("<select name='h' aria-label='Branch'>\n");
if (pinned) {
const char *hex = oid_to_hex(pinned);
diff --git a/source/ui-stats.c b/source/ui-stats.c
index 97918e0..5b36f54 100644
--- a/source/ui-stats.c
+++ b/source/ui-stats.c
@@ -385,7 +385,7 @@ static void print_options_form(const struct cgit_period *period, int top)
if (ctx.repo->max_stats > 1) {
choices = ctx.repo->max_stats;
html("<tr><td class='label'>Period:</td>");
- html("<td class='ctrl'><select name='period' data-autosubmit='1'>");
+ html("<td class='ctrl'><select name='period'>");
for (i = 0; i < choices; i++)
html_option(cgit_fmt("%c", periods[i].code),
periods[i].name,
@@ -393,7 +393,7 @@ static void print_options_form(const struct cgit_period *period, int top)
html("</select></td></tr>\n");
}
html("<tr><td class='label'>Authors:</td>");
- html("<td class='ctrl'><select name='ofs' data-autosubmit='1'>");
+ html("<td class='ctrl'><select name='ofs'>");
html_intoption(10, "10", top);
html_intoption(25, "25", top);
html_intoption(50, "50", top);
@@ -401,7 +401,7 @@ static void print_options_form(const struct cgit_period *period, int top)
html_intoption(-1, "all", top);
html("</select></td></tr>\n");
html("<tr><td></td><td class='ctrl'>");
- html("<noscript><input type='submit' value='Reload'></noscript>");
+ html("<input type='submit' value='reload'>");
html("</td></tr></table>");
html("</form>\n");
html("</div>\n");