+--------------------------------------------------------------------+
*}
{* relationship selector *}
-
<div class="crm-contact-relationship-{$context}">
- <table class="crm-contact-relationship-selector-{$context} crm-ajax-table" data-page-length='10'>
+ <table
+ class="crm-contact-relationship-selector-{$context} crm-ajax-table"
+ data-ajax="{crmURL p="civicrm/ajax/contactrelationships" q="context=$context&cid=$contactId"}">
<thead>
<tr>
<th data-data="relation" class='crm-contact-relationship-type'>{ts}Relationship{/ts}</th>
</tr>
</thead>
</table>
-
- {literal}
- <script type="text/javascript">
- (function($) {
- var context = {/literal}"{$context}"{literal};
- CRM.$('table.crm-contact-relationship-selector-' + context).data({
- "ajax": {/literal}'{crmURL p="civicrm/ajax/contactrelationships" h=0 q="context=$context&cid=$contactId"}'{literal},
- });
- })(CRM.$);
- </script>
- {/literal}
</div>