From: Marty Wright Date: Fri, 20 Nov 2015 04:57:01 +0000 (-0700) Subject: Update Main.tpl X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=1b99adbfd70ac806ed7c7199d2d937d018158053;p=civicrm-core.git Update Main.tpl Combined CRM.$(function($) {...}) blocks. --- diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index cedaab15a1..7313c15ae7 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -453,9 +453,7 @@ } $('#pricevalue').each(toggleBillingBlockIfFree).on('change', toggleBillingBlockIfFree); - }); - - CRM.$(function($) { + // Update pledge contribution amount when pledge checkboxes change $("input[name^='pledge_amount']").on('change', function() { var total = 0;