CRM-13973-qa : consists of fix for most of the points mentioned in #58122
[civicrm-core.git] / templates / CRM / Event / Form / Participant.tpl
index 0940a0758fc6490145b04f584a013930680e67ae..92d228ef771fb3e83aa63ba65857411bdd933eec 100644 (file)
   </script>
   {/literal}
   {/if}
+
   {include file="CRM/Event/Form/EventFees.tpl"}
 
 {* Ajax callback for custom data snippet *}
           {literal}
           var eventId = $('#event_id').val();
 
+          {/literal}{if $action eq 2}{literal}
+            if (typeof eventId == 'undefined') {
+              var eventId = $('[name=event_id]').val();
+            }
+          {/literal}{/if}{literal}
+
           if (eventId) {
             dataUrl += '&eventId=' + eventId;
           }