mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 04:22:58 +02:00
Firewall: Hide rule actions when using NAT.
There is no need to choose a rule action when creating a NAT rule, so this section can be hidden when "Use NAT" has been checked.
This commit is contained in:
@@ -136,14 +136,17 @@ print<<END;
|
||||
\$("#protocol").change(update_protocol);
|
||||
update_protocol();
|
||||
|
||||
// When nat not used, hide it
|
||||
if (! \$("#USE_NAT").attr("checked")) {
|
||||
// Show/Hide elements when NAT checkbox is checked.
|
||||
if (\$("#USE_NAT").attr("checked")) {
|
||||
\$("#actions").hide();
|
||||
} else {
|
||||
\$(".NAT").hide();
|
||||
}
|
||||
|
||||
// Show NAT area when "use nat" checkbox is clicked
|
||||
\$("#USE_NAT").change(function() {
|
||||
\$(".NAT").toggle();
|
||||
\$("#actions").toggle();
|
||||
});
|
||||
|
||||
// Time constraints
|
||||
|
||||
Reference in New Issue
Block a user