From 555be98e0a9a4f64f55092b7c175de2917f4655c Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Sun, 6 Sep 2026 19:58:12 -1000 Subject: Remove the auto-submitting selects --- source/ui-diff.c | 8 ++++---- source/ui-shared.c | 2 +- source/ui-stats.c | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) (limited to 'source') 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(""); html("context:"); html(""); - html(""); selected = ctx.qry.context; if (!selected) selected = DEFAULT_CONTEXT_LINES; @@ -591,7 +591,7 @@ void cgit_print_diff_ctrls(void) html(""); html("space:"); html(""); - html(""); html_intoption(0, "include", ctx.qry.ignorews); html_intoption(1, "ignore", ctx.qry.ignorews); html(""); @@ -599,14 +599,14 @@ void cgit_print_diff_ctrls(void) html(""); html("mode:"); html(""); - html(""); 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(""); html(""); - html(""); + html(""); html(""); html("\n"); html("\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("\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("Period:"); - html(""); 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("\n"); } html("Authors:"); - html(""); 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("\n"); html(""); - html(""); + html(""); html(""); html("\n"); html("\n"); -- cgit v2.8.0