- {include file="CRM/Core/Form/RecurringEntity.tpl"}
- {literal}
- <script type="text/javascript">
- CRM.$(function($) {
- if ($('#activity_date_time').val() !== "" && $('#activity_date_time_time').val() !== "") {
- $('#repetition_start_date, #repetition_start_date_display').val($('#activity_date_time').val());
- $('#repetition_start_date_time').val($('#activity_date_time_time').val());
- }
-
- $('#activity_date_time_display').change(function() {
- $('#repetition_start_date, #repetition_start_date_display').val($('#activity_date_time').val());
- });
-
- $('#activity_date_time_time').change(function() {
- $('#repetition_start_date_time').val($('#activity_date_time_time').val());
- });
-
- if ($('#start_action_offset').val() == "" && $('#repeat_absolute_date_display').val() == "") {
- $('#recurring-entity-block').addClass('collapsed');
- }
- });
- </script>
- {/literal}
- {if $action eq 1}
- {literal}
- <script type="text/javascript">
- CRM.$(function($) {
- $('#recurring-entity-block div.crm-submit-buttons').css('display', 'none');
- });
- </script>
- {/literal}
- {/if}