CRM-16044 - Back out JS changes after much discussion.
authorLola Slade <lola@freeform.ca>
Sat, 25 Apr 2015 23:19:37 +0000 (17:19 -0600)
committerLola Slade <lola@freeform.ca>
Sat, 25 Apr 2015 23:19:37 +0000 (17:19 -0600)
templates/CRM/Member/Form/Membership.tpl

index 2d53643d148a9a0d1955a9779a388fd651fb7728..37df7b3056aa0a20a7666b8dae3a1b5314addaf6 100644 (file)
         cj("#auto_renew").prop('checked', false );
         cj("#autoRenew").hide( );
       }
+
+      //play w/ receipt option.
+      if ( cj("#auto_renew").prop('checked' ) ) {
+        cj("#notice").hide( );
+        cj("#send_receipt").prop('checked', false );
+        cj("#send-receipt").hide( );
+      }
+      else {
+        cj("#send-receipt").show( );
+        if ( cj("#send_receipt").prop('checked' ) ) {
+          cj("#notice").show( );
+        }
+      }
     }
     {/literal}
     {/if}