validate: true,
refreshAction: ['next_new', 'submit_savenext', 'upload_new'],
cancelButton: '.cancel',
- openInline: 'a.open-inline, a.button, a.action-item',
+ openInline: 'a.open-inline, a.button, a.action-item, a.open-inline-noreturn',
onCancel: function(event) {}
}
};
if (settings.openInline) {
settings.autoClose = $el.crmSnippet('isOriginalUrl');
$(settings.openInline, this).not(exclude + ', .crm-popup').click(function(event) {
+ if ($(this).hasClass('open-inline-noreturn')) {
+ // Force reset of original url
+ $el.data('civiCrmSnippet')._originalUrl = $(this).attr('href');
+ }
$el.crmSnippet('option', 'url', $(this).attr('href')).crmSnippet('refresh');
return false;
});
{/if}
{if $paymentType eq 'owed'}
<div class="action-link css_right crm-link-credit-card-mode">
- <a class="open-inline crm-hover-button" href="{$ccModeLink}">» {ts}submit credit card payment{/ts}</a>
+ <a class="open-inline-noreturn action-item crm-hover-button" href="{$ccModeLink}">» {ts}submit credit card payment{/ts}</a>
</div>
{/if}
{/if}
{else}
{capture assign=ccModeLink}{crmURL p='civicrm/contact/view/contribution' q="reset=1&action=add&context=standalone&mode=live"}{/capture}
{/if}
- <a class="open-inline crm-hover-button action-item" href="{$ccModeLink}">» {ts}submit credit card contribution{/ts}</a>
+ <a class="open-inline-noreturn action-item crm-hover-button" href="{$ccModeLink}">» {ts}submit credit card contribution{/ts}</a>
</div>
{/if}
<div class="crm-submit-buttons">
<a class="crm-hover-button action-item" href="{$viewContribURL}">{ts}View Payment{/ts}</a>
{else} {* Links to record / submit a payment. *}
{capture assign=newContribURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&context=`$context`&ppid=`$row.id`"}{/capture}
- <a class="crm-hover-button action-item" href="{$newContribURL}">{ts}Record Payment{/ts}</a>
+ <a class="open-inline-noreturn crm-hover-button action-item" href="{$newContribURL}">{ts}Record Payment{/ts}</a>
{if $newCredit}
{capture assign=newCreditURL}{crmURL p="civicrm/contact/view/contribution" q="reset=1&action=add&cid=`$contactId`&ppid=`$row.id`&context=`$context`&mode=live"}{/capture}
- <a class="crm-hover-button action-item" href="{$newCreditURL}">{ts}Credit Card Payment{/ts}</a>
+ <a class="open-inline-noreturn action-item crm-hover-button" href="{$newCreditURL}">{ts}Credit Card Payment{/ts}</a>
{/if}
{capture assign=editURL}{crmURL p="civicrm/pledge/payment" q="reset=1&action=update&cid=`$contactId`&context=`$context`&ppId=`$row.id`"}{/capture}
<a class="crm-hover-button action-item" href="{$editURL}">{ts}Edit Scheduled Payment{/ts}</a>