From 1b99adbfd70ac806ed7c7199d2d937d018158053 Mon Sep 17 00:00:00 2001 From: Marty Wright Date: Thu, 19 Nov 2015 21:57:01 -0700 Subject: [PATCH] Update Main.tpl Combined CRM.$(function($) {...}) blocks. --- templates/CRM/Contribute/Form/Contribution/Main.tpl | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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; -- 2.25.1