Make selecting table work without a submit button

This commit is contained in:
Joe Cooper
2026-01-31 13:16:07 -06:00
parent d546116ab7
commit e92fc730ee

View File

@@ -60,8 +60,9 @@ if (!@tables) {
print &ui_form_start("index.cgi");
print "<div class='nftables_table_select'>\n";
print &text('index_change')," ";
print &ui_select("table", $in{'table'}, \@table_opts, 1, 0, 1, 0,
"onchange='form.submit()'");
print &ui_select("table", $in{'table'}, \@table_opts, 1, 0, 1, 0,
"onchange='this.form.querySelector(\"[name=nft_submit]\").click()'");
print &ui_submit("", "nft_submit", 0, "style='display:none'");
print "</div>\n";
print &ui_form_end();
}