CRM-17469 - change cj to $
authorMarty Wright <marty.wright@comcast.net>
Fri, 30 Oct 2015 22:02:46 +0000 (16:02 -0600)
committerMarty Wright <marty.wright@comcast.net>
Fri, 30 Oct 2015 22:02:46 +0000 (16:02 -0600)
templates/CRM/Contribute/Form/Contribution/Main.tpl

index 3a8f617ec4ca3504f1865fd328d9156738aa5953..cedaab15a1cddf4817196b5c77334349b8b9191e 100644 (file)
   CRM.$(function($) {
     // highlight price sets
     function updatePriceSetHighlight() {
-      cj('#priceset .price-set-row span').removeClass('highlight');
-      cj('#priceset .price-set-row input:checked').parent().addClass('highlight');
+      $('#priceset .price-set-row span').removeClass('highlight');
+      $('#priceset .price-set-row input:checked').parent().addClass('highlight');
     }
-    cj('#priceset input[type="radio"]').change(updatePriceSetHighlight);
+    $('#priceset input[type="radio"]').change(updatePriceSetHighlight);
     updatePriceSetHighlight();
 
     function toggleBillingBlockIfFree(){
       var total_amount_tmp =  $(this).data('raw-total');
       // Hide billing questions if this is free
       if (total_amount_tmp == 0){
-        cj("#billing-payment-block").hide();
-        cj(".payment_options-group").hide();
+        $("#billing-payment-block").hide();
+        $(".payment_options-group").hide();
       }
       else {
-        cj("#billing-payment-block").show();
-        cj(".payment_options-group").show();
+        $("#billing-payment-block").show();
+        $(".payment_options-group").show();
       }
     }
 
 
   CRM.$(function($) {
     // Update pledge contribution amount when pledge checkboxes change
-    cj("input[name^='pledge_amount']").on('change', function() {
+    $("input[name^='pledge_amount']").on('change', function() {
       var total = 0;
-      cj("input[name^='pledge_amount']:checked").each(function() {
-        total += Number(cj(this).attr('amount'));
+      $("input[name^='pledge_amount']:checked").each(function() {
+        total += Number($(this).attr('amount'));
       });
-      cj("input[name^='price_']").val(total.toFixed(2));
+      $("input[name^='price_']").val(total.toFixed(2));
     });
   });
   {/literal}