}
}
-//load the auto renew msg if recur allow.
-{/literal}{if $authorize and $allowAutoRenewMsg}{literal}
-CRM.$(function($) {
- setReminder( null );
-});
-{/literal}{/if}{literal}
-
-function setReminder( autoRenewOpt ) {
- //don't process.
- var allowToProcess = {/literal}'{$allowAutoRenewMsg}'{literal};
- if ( !allowToProcess ) {
- return;
- }
- if ( !autoRenewOpt ) {
- autoRenewOpt = cj( 'input:radio[name="auto_renew"]:checked').val();
- }
- funName = 'hide();';
- if ( autoRenewOpt == 1 || autoRenewOpt == 2 ) funName = 'show();';
- eval( "cj('#autoRenewalMsgId')." + funName );
-}
-
function showHideMaxRelated(relTypeId) {
if (relTypeId) {
cj('#maxRelated').show();