$contactRelationships[$relationshipId]['email'] = $values['email'];
$contactRelationships[$relationshipId]['phone'] = $values['phone'];
$contactRelationships[$relationshipId]['links'] = $values['action'];
+ $contactRelationships[$relationshipId]['id'] = $values['id'];
}
}
return $contactRelationships;
6 => 'email',
7 => 'phone',
8 => 'links',
+ 9 => '',
);
$sEcho = CRM_Utils_Type::escape($_REQUEST['sEcho'], 'Integer');
'email',
'phone',
'links',
+ 'id',
);
echo CRM_Utils_JSON::encodeDataTableSelector($relationships, $sEcho, $iTotal, $iFilteredTotal, $selectorElements);
{sClass: 'crm-contact-relationship-email'},
{sClass: 'crm-contact-relationship-phone'},
{sClass: 'crm-contact-relationship-links', bSortable: false},
+ {sClass: 'hiddenElement', bSortable: false}
],
"bProcessing": true,
"sPaginationType": "full_numbers",
"bServerSide": true,
"bJQueryUI": true,
"sAjaxSource": sourceUrl,
- "iDisplayLength": 5,
+ "iDisplayLength": 25,
"oLanguage": {
"sZeroRecords": ZeroRecordText,
"sProcessing": {/literal}"{ts escape='js'}Processing...{/ts}"{literal},
CRM.tabHeader.updateCount(cj('#tab_rel'), currentoTable.fnSettings().fnRecordsTotal());
}
{/literal}{/if}{literal}
+ },
+ "fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull) {
+ cj(nRow).addClass('crm-entity');
+ cj(nRow).attr('id', 'relationship-'+ aData[9]);
}
});
}