Fix js error on contribution page
authorColeman Watts <coleman@civicrm.org>
Fri, 29 May 2015 19:04:10 +0000 (15:04 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 29 May 2015 19:04:10 +0000 (15:04 -0400)
templates/CRM/Contribute/Form/Contribution/Main.tpl

index c86835de9ad690d994612a80cd435a3890b868e0..ba70f9bb0c592ea37a4c0daf3efb386499f76028 100644 (file)
 
   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 {