campaign: hide pp note w/ js, 2nd try
authorKai Michaelis <kai@gnupg.org>
Fri, 2 Jun 2017 12:04:36 +0000 (14:04 +0200)
committerKai Michaelis <kai@gnupg.org>
Fri, 2 Jun 2017 12:04:36 +0000 (14:04 +0200)
web/share/campaign/campaign.js

index f71857b..e540012 100644 (file)
@@ -147,7 +147,8 @@ $(document).ready(function() {
 /* hide the note about recurring donations under the Paypal option.  */
 $(document).ready(function() {
   $("#recur").change(function() {
-    if (this.value !== 0) {
+    console.log
+    if (this.value === "0") {
       $("#paypal-note").hide();
     }
     else {