From: Coleman Watts Date: Fri, 29 May 2015 19:04:10 +0000 (-0400) Subject: Fix js error on contribution page X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=06165b2f95c293f4d075958a55f1f1b61cf58abf;p=civicrm-core.git Fix js error on contribution page --- 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 {