{if $action eq 1 or $action eq 2 or $context eq 'search' or $context eq 'smog'}
- {*include custom data js file*}
- {include file="CRM/common/customData.tpl"}
{literal}
<script type="text/javascript">
- CRM.$(function($) {
- var doNotNotifyAssigneeFor = {/literal}{$doNotNotifyAssigneeFor|@json_encode}{literal};
- $('#activity_type_id').change(function() {
- if ($.inArray($(this).val(), doNotNotifyAssigneeFor) != -1) {
- $('#notify_assignee_msg').hide();
- }
- else {
- $('#notify_assignee_msg').show();
- }
+ CRM.$(function($) {
+ var doNotNotifyAssigneeFor = {/literal}{$doNotNotifyAssigneeFor|@json_encode}{literal};
+ $('#activity_type_id').change(function() {
+ if ($.inArray($(this).val(), doNotNotifyAssigneeFor) != -1) {
+ $('#notify_assignee_msg').hide();
+ }
+ else {
+ $('#notify_assignee_msg').show();
+ }
+ });
});
-
- {/literal}
- {if $customDataSubType}
- CRM.buildCustomData( '{$customDataType}', {$customDataSubType} );
- {else}
- CRM.buildCustomData( '{$customDataType}' );
- {/if}
- {literal}
- });
</script>
{/literal}
+
+ {include file="CRM/common/customDataBlock.tpl"}
{/if}
</div>{* end of form block*}