-
-
Notifications
You must be signed in to change notification settings - Fork 824
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11950 from mattwire/cust_data_tpl_extract
Extract custom data edit template code to shared template
- Loading branch information
Showing
2 changed files
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{* Edit custom data on Edit entity forms *} | ||
{* Requires <div id="customData"></div> on the form *} | ||
{*include custom data js file*} | ||
{include file="CRM/common/customData.tpl"} | ||
{literal} | ||
<script type="text/javascript"> | ||
CRM.$(function($) { | ||
{/literal} | ||
CRM.buildCustomData( '{$customDataType}' ); | ||
{if $customDataSubType} | ||
CRM.buildCustomData( '{$customDataType}', {$customDataSubType} ); | ||
{/if} | ||
{literal} | ||
}); | ||
</script> | ||
{/literal} |