From: yashodha Date: Wed, 21 Aug 2013 07:30:24 +0000 (+0530) Subject: CRM-13233 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e75336c45d7f2c9b46e4cb42129cb05911288768;p=civicrm-core.git CRM-13233 --- diff --git a/templates/CRM/Event/Form/Registration/Register.tpl b/templates/CRM/Event/Form/Registration/Register.tpl index 8f15b2dfb2..cbe7aa5646 100644 --- a/templates/CRM/Event/Form/Registration/Register.tpl +++ b/templates/CRM/Event/Form/Registration/Register.tpl @@ -213,8 +213,15 @@ function skipPaymentMethod() { var symbol = '{/literal}{$currencySymbol}{literal}'; + var isMultiple = '{/literal}{$event.is_multiple_registrations}{literal}'; + + var flag = 1; + if (isMultiple && cj("#additional_participants").val()) { + flag = 0; + } + cj('#priceset input').change(function () { - if ((cj(this).attr('data-amount') == '0') || (cj('#pricevalue').text() == symbol + " 0.00" )) { + if (((cj(this).attr('data-amount') == '0') || (cj('#pricevalue').text() == symbol + " 0.00" )) && flag ) { cj(".payment_options-group").hide(); cj("div.payment_processor-section").hide(); cj("div#payment_information").hide();