public inbox for ipfire-scm@lists.ipfire.org
 help / color / mirror / Atom feed
From: git@ipfire.org
To: ipfire-scm@lists.ipfire.org
Subject: [git.ipfire.org] IPFire 2.x development tree branch, next, updated. bfaa69562a5a0d9a57c3a374d967da9875ff77be
Date: Tue, 14 Jan 2014 22:12:45 +0100	[thread overview]
Message-ID: <20140114211246.84D9421E4C@argus.ipfire.org> (raw)

[-- 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

                 reply	other threads:[~2014-01-14 21:12 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140114211246.84D9421E4C@argus.ipfire.org \
    --to=git@ipfire.org \
    --cc=ipfire-scm@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox