mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-28 11:43:25 +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);
|
\$("#protocol").change(update_protocol);
|
||||||
update_protocol();
|
update_protocol();
|
||||||
|
|
||||||
// When nat not used, hide it
|
// Show/Hide elements when NAT checkbox is checked.
|
||||||
if (! \$("#USE_NAT").attr("checked")) {
|
if (\$("#USE_NAT").attr("checked")) {
|
||||||
|
\$("#actions").hide();
|
||||||
|
} else {
|
||||||
\$(".NAT").hide();
|
\$(".NAT").hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Show NAT area when "use nat" checkbox is clicked
|
// Show NAT area when "use nat" checkbox is clicked
|
||||||
\$("#USE_NAT").change(function() {
|
\$("#USE_NAT").change(function() {
|
||||||
\$(".NAT").toggle();
|
\$(".NAT").toggle();
|
||||||
|
\$("#actions").toggle();
|
||||||
});
|
});
|
||||||
|
|
||||||
// Time constraints
|
// Time constraints
|
||||||
|
|||||||
Reference in New Issue
Block a user