diff options
context:
space:
mode:
Diffstat (limited to 'source/ui-diff.c')
-rw-r--r--source/ui-diff.c6
1 file changed, 3 insertions, 3 deletions
diff --git a/source/ui-diff.c b/source/ui-diff.c
index c2f4717..baaa1f8 100644
--- a/source/ui-diff.c
+++ b/source/ui-diff.c
@@ -353,7 +353,7 @@ void cgit_print_diff_ctrls(void)
html("<tr>");
html("<td class='label'>context:</td>");
html("<td class='ctrl'>");
- html("<select name='context' onchange='this.form.submit();'>");
+ html("<select name='context' data-autosubmit='1'>");
curr = ctx.qry.context;
if (!curr)
curr = 3;
@@ -366,7 +366,7 @@ void cgit_print_diff_ctrls(void)
html("</tr><tr>");
html("<td class='label'>space:</td>");
html("<td class='ctrl'>");
- html("<select name='ignorews' onchange='this.form.submit();'>");
+ html("<select name='ignorews' data-autosubmit='1'>");
html_intoption(0, "include", ctx.qry.ignorews);
html_intoption(1, "ignore", ctx.qry.ignorews);
html("</select>");
@@ -374,7 +374,7 @@ void cgit_print_diff_ctrls(void)
html("</tr><tr>");
html("<td class='label'>mode:</td>");
html("<td class='ctrl'>");
- html("<select name='dt' onchange='this.form.submit();'>");
+ html("<select name='dt' data-autosubmit='1'>");
curr = ctx.qry.has_difftype ? ctx.qry.difftype : ctx.cfg.difftype;
html_intoption(0, "unified", curr);
html_intoption(1, "ssdiff", curr);