<thead>
<tr>
<th data-data="activity_type" class="crm-contact-activity-activity_type">{ts}Type{/ts}</th>
- <th data-data="subject" cell-class="crmf-subject crm-editable" cell-data-type="text" class="crm-contact-activity_subject">{ts}Subject{/ts}</th>
+ <th data-data="subject" cell-class="crmf-subject crm-editable" class="crm-contact-activity_subject">{ts}Subject{/ts}</th>
<th data-data="source_contact_name" class="crm-contact-activity-source_contact">{ts}Added By{/ts}</th>
<th data-data="target_contact_name" data-orderable="false" class="crm-contact-activity-target_contact">{ts}With{/ts}</th>
<th data-data="assignee_contact_name" data-orderable="false" class="crm-contact-activity-assignee_contact">{ts}Assigned{/ts}</th>
+--------------------------------------------------------------------+
*}
-<table id="dedupeExceptions" class="display">
- <thead>
- <tr class="columnheader">
- <th>{ts}Contact 1{/ts}</th>
- <th>{ts}Contact 2 (Duplicate){/ts}</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- {foreach from=$dedupeExceptions item=exception key=id}
- <tr id="dupeRow_{$id}" class="{cycle values="odd-row,even-row"}">
- <td>{$exception.main.name}</td>
- <td>{$exception.other.name}</td>
- <td><a id='duplicateContacts' href="#" title={ts}Remove Exception{/ts} onClick="processDupes( {$exception.main.id}, {$exception.other.id}, 'nondupe-dupe', 'dedupe-exception' );return false;">» {ts}Remove Exception{/ts}</a></td>
- </tr>
- {/foreach}
- </tbody>
+<table id="dedupeExceptions" class="display crm-sortable">
+ <thead>
+ <tr class="columnheader">
+ <th>{ts}Contact 1{/ts}</th>
+ <th>{ts}Contact 2 (Duplicate){/ts}</th>
+ <th data-orderable="false"></th>
+ </tr>
+ </thead>
+ <tbody>
+ {foreach from=$dedupeExceptions item=exception key=id}
+ <tr id="dupeRow_{$id}" class="{cycle values="odd-row,even-row"}">
+ <td>{$exception.main.name}</td>
+ <td>{$exception.other.name}</td>
+ <td><a id='duplicateContacts' href="#" title={ts}Remove Exception{/ts} onClick="processDupes( {$exception.main.id}, {$exception.other.id}, 'nondupe-dupe', 'dedupe-exception' );return false;">» {ts}Remove Exception{/ts}</a></td>
+ </tr>
+ {/foreach}
+ </tbody>
</table>
<div class="clear"><br /></div>
<div class="action-link">
- {crmButton p="civicrm/contact/deduperules" q="reset=1" icon="close"}{ts}Done{/ts}{/crmButton}
+ {crmButton p="civicrm/contact/deduperules" q="reset=1" icon="close"}{ts}Done{/ts}{/crmButton}
</div>
-
-{literal}
-<script type="text/javascript">
- //load jQuery data table.
- cj('#dedupeExceptions').dataTable( {
- "sPaginationType": "full_numbers",
- "aaSorting": [[0,'asc'], [1,'asc']],
- "aoColumns": [{sClass:""},{sClass:""},{bSortable:false}],
- });
-</script>
-{/literal}
-
{* process the dupe contacts *}
{include file="CRM/common/dedupe.tpl"}
{* show browse table for any action *}
<div id="notes">
{strip}
- {include file="CRM/common/jsortable.tpl"}
-
- <script type="text/javascript">
- {literal}
- CRM.$(function($) {
- var tabId = $('.dataTable').attr('id');
-
- $('table#'+ tabId).dataTable().fnSettings().aoDrawCallback.push( {
- "fn": function () {
- $('#'+ tabId +' tr').each( function() {
- drawCommentRows(this.id)
- });
- },
- "sName": "user"
- } );
- });
-
- {/literal}
- </script>
-
- <table id="options" class="display">
+ <table id="options" class="display crm-sortable" data-order='[[3,"desc"]]'>
<thead>
<tr>
- <th></th>
+ <th data-orderable="false"></th>
<th>{ts}Note{/ts}</th>
<th>{ts}Subject{/ts}</th>
<th>{ts}Date{/ts}</th>
<th>{ts}Created By{/ts}</th>
- <th>{ts}Attachment(s){/ts}</th>
- <th></th>
+ <th data-orderable="false">{ts}Attachment(s){/ts}</th>
+ <th data-orderable="false"></th>
</tr>
</thead>