public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
* [git.ipfire.org] IPFire 2.x development tree branch, next, updated. bfaa69562a5a0d9a57c3a374d967da9875ff77be
@ 2014-01-14 21:12 git
  0 siblings, 0 replies; only message in thread
From: git @ 2014-01-14 21:12 UTC (permalink / raw)
  To: ipfire-scm

[-- Attachment #1: Type: text/plain, Size: 1847 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-14 21:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-14 21:12 [git.ipfire.org] IPFire 2.x development tree branch, next, updated. bfaa69562a5a0d9a57c3a374d967da9875ff77be git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox