[git] gnupg-doc - branch, preview, updated. dfd675c85b152e5148f8f4c479b2cf4e0f74c486

by Kai Michaelis cvs at cvs.gnupg.org
Fri Jun 2 13:55:51 CEST 2017


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 "The GnuPG website and other docs".

The branch, preview has been updated
       via  dfd675c85b152e5148f8f4c479b2cf4e0f74c486 (commit)
      from  3cf3cb75f2d601a8bef1a74aa6617cbc565fe953 (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 dfd675c85b152e5148f8f4c479b2cf4e0f74c486
Author: Kai Michaelis <kai at gnupg.org>
Date:   Fri Jun 2 13:57:46 2017 +0200

    campaign: hide pp note w/ js

diff --git a/web/donate/donate.org b/web/donate/donate.org
index 1320966..3c9c2ed 100644
--- a/web/donate/donate.org
+++ b/web/donate/donate.org
@@ -155,7 +155,7 @@
               <input type="radio" name="paytype" id="pp"
                      value="pp" /><!--CHECK_PP-->
               PayPal
-              <span class="help-block help-inline">
+              <span class="help-block help-inline" id="paypal-note">
                 Please note that in certain countries recurring donations are not possible with PayPal.
               </span>
             </label>
diff --git a/web/share/campaign/campaign.js b/web/share/campaign/campaign.js
index ba931c5..f71857b 100644
--- a/web/share/campaign/campaign.js
+++ b/web/share/campaign/campaign.js
@@ -143,3 +143,15 @@ $(document).ready(function() {
 		     + yt_id + '?autoplay=1&modestbranding=1&rel=0' + extra_parms + '"></iframe>');
     });
 });
+
+/* hide the note about recurring donations under the Paypal option.  */
+$(document).ready(function() {
+  $("#recur").change(function() {
+    if (this.value !== 0) {
+      $("#paypal-note").hide();
+    }
+    else {
+      $("#paypal-note").show();
+    }
+  });
+});

-----------------------------------------------------------------------

Summary of changes:
 web/donate/donate.org          |  2 +-
 web/share/campaign/campaign.js | 12 ++++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
The GnuPG website and other docs
http://git.gnupg.org




More information about the Gnupg-commits mailing list