This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "IPFire 2.x development tree".
The branch, next has been updated
via bfaa69562a5a0d9a57c3a374d967da9875ff77be (commit)
from 5a906c11ecc29e00180508f835e308af1e6f8615 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit bfaa69562a5a0d9a57c3a374d967da9875ff77be
Author: Stefan Schantl <stefan.schantl(a)ipfire.org>
Date: Tue Jan 14 22:09:13 2014 +0100
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.
-----------------------------------------------------------------------
Summary of changes:
html/cgi-bin/firewall.cgi | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
Difference in files:
diff --git a/html/cgi-bin/firewall.cgi b/html/cgi-bin/firewall.cgi
index 5196670..2a9415a 100644
--- a/html/cgi-bin/firewall.cgi
+++ b/html/cgi-bin/firewall.cgi
@@ -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
hooks/post-receive
--
IPFire 2.x development tree