Skip to content

Commit

Permalink
Convert Membership/Membership Renewal forms to standard customData te…
Browse files Browse the repository at this point in the history
…mplate
  • Loading branch information
mattwire committed Jan 7, 2019
1 parent a732161 commit 96469f7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
4 changes: 2 additions & 2 deletions templates/CRM/Member/Form/Membership.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@
var fname = '#priceset';
if ( !priceSetId ) {
cj('#membership_type_id_1').val(0);
CRM.buildCustomData(customDataType, null );
CRM.buildCustomData(customDataType, null);
// hide price set fields.
cj( fname ).hide( );
Expand Down Expand Up @@ -797,7 +797,7 @@
subTypeNames = null;
}
CRM.buildCustomData( customDataType, subTypeNames );
CRM.buildCustomData(customDataType, subTypeNames);
}
function enableAmountSection( setContributionType ) {
Expand Down
10 changes: 1 addition & 9 deletions templates/CRM/Member/Form/MembershipRenewal.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -136,9 +136,7 @@
</table>
{/if}

<div id="customData"></div>
{*include custom data js file*}
{include file="CRM/common/customData.tpl"}
{include file="CRM/common/customDataBlock.tpl"}

<div>{include file="CRM/common/formButtons.tpl" location="bottom"}</div>

Expand Down Expand Up @@ -189,12 +187,6 @@
CRM.$(function($) {
$('#membershipOrgType').hide();
$('#changeNumTerms').hide();
{/literal}
CRM.buildCustomData('{$customDataType}');
{if $customDataSubType}
CRM.buildCustomData('{$customDataType}', {$customDataSubType});
{/if}
{literal}
});

function checkPayment() {
Expand Down

0 comments on commit 96469f7

Please sign in to comment.