CRM-16353 - One more Contact DataTable refactor
authorJoseph Lacey <joseph@palantetech.coop>
Thu, 30 Apr 2015 02:54:26 +0000 (20:54 -0600)
committerJoseph Lacey <joseph@palantetech.coop>
Thu, 30 Apr 2015 02:54:26 +0000 (20:54 -0600)
----------------------------------------
* CRM-16353: Upgrade datatables integration to use v2 api
  https://issues.civicrm.org/jira/browse/CRM-16353

templates/CRM/Contact/Form/Task.tpl

index 939fcd5c357cf99ddf436d580cc34f75da495d5c..6952eb183533ed38e68a12d6e6f1c010a5b5e40f 100644 (file)
@@ -27,7 +27,7 @@
 
 {if $searchtype eq 'ts_sel'}
 <div id="popupContainer">
-  <table id="selectedRecords-{$group.id}" class="display crm-copy-fields">
+  <table id="selectedRecords-{$group.id}" class="display crm-copy-fields crm-sortable">
     <thead>
     <tr class="columnheader">
       <th class="contact_details">{ts}Name{/ts}</th>
       count++;
     });
 
-    columns    = columns.substring(0, columns.length - 1 );
-    sortColumn = sortColumn.substring(0, sortColumn.length - 1 );
-    eval('sortColumn =[' + sortColumn + ']');
-    eval('columns =[' + columns + ']');
-
-    //load jQuery data table.
-    $('#selectedRecords-{/literal}{$group.id}{literal}').dataTable( {
-      "sPaginationType": "full_numbers",
-      "bJQueryUI"  : true,
-      "aaSorting"  : sortColumn,
-      "aoColumns"  : columns,
-      "bFilter"    : false
-    });
   });
 
 </script>