From 06165b2f95c293f4d075958a55f1f1b61cf58abf Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Fri, 29 May 2015 15:04:10 -0400 Subject: [PATCH] Fix js error on contribution page --- templates/CRM/Contribute/Form/Contribution/Main.tpl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/CRM/Contribute/Form/Contribution/Main.tpl b/templates/CRM/Contribute/Form/Contribution/Main.tpl index c86835de9a..ba70f9bb0c 100644 --- a/templates/CRM/Contribute/Form/Contribution/Main.tpl +++ b/templates/CRM/Contribute/Form/Contribution/Main.tpl @@ -448,13 +448,13 @@ function skipPaymentMethod() { var flag = false; - cj('.price-set-option-content input').each( function(){ + cj('.price-set-option-content input[data-amount]').each( function(){ currentTotal = cj(this).attr('data-amount').replace(/[^\/\d]/g,''); if( cj(this).is(':checked') && currentTotal == 0 ) { flag = true; } }); - cj('.price-set-option-content input').change( function () { + cj('.price-set-option-content input[data-amount]').change( function () { if (cj(this).attr('data-amount').replace(/[^\/\d]/g,'') == 0 ) { flag = true; } else { -- 2.25.1