From 7f94bfb8224468184e6e12d2192827c8d7bebc57 Mon Sep 17 00:00:00 2001 From: Marty Wright Date: Fri, 30 Oct 2015 16:02:46 -0600 Subject: [PATCH] CRM-17469 - change cj to $ --- .../CRM/Contribute/Form/Contribution/Main.tpl | 22 +++++++++---------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index 3a8f617ec4..cedaab15a1 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -433,22 +433,22 @@ 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(); } } @@ -457,12 +457,12 @@ 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} -- 2.25.1