CRM-15153 - Give forms a unique css class based on full class name
[civicrm-core.git] / templates / CRM / Event / Form / ParticipantFeeSelection.tpl
index 50f84fb49cc6e425c237263b351f268ddbc011b8..60f0b9044fd861fa94da1769c9c60f5a27102170 100644 (file)
@@ -199,9 +199,10 @@ CRM.$(function($) {
 {literal}
 <script type='text/javascript'>
 CRM.$(function($) {
+  var $form = $('form.{/literal}{$form.formClass}{literal}');
   cj('.total_amount-section').remove(); 
 
-  cj('#ParticipantFeeSelection').submit(function(e) {
+  cj($form).submit(function(e) {
     var partiallyPaid = {/literal}{$partiallyPaid}{literal};
     var pendingRefund = {/literal}{$pendingRefund}{literal};
     var statusId = cj('#status_id').val();