- $("#borrowerst").tablesorter();
-
- $("#selectallbutton").click(function() {
- $("#borrowerst").find("input:checkbox").each(function() {
- $(this).attr("checked", true);
+ [% IF borrowers %]
+ $("#borrowerst").dataTable($.extend(true, {}, dataTablesDefaults, {
+ "sDom": 't',
+ [% IF ( op == 'show_results' ) %]
+ "aoColumnDefs": [
+ { 'sType': "title-string", 'aTargets' : [ 'title-string'] }
+ ],
+ [% ELSE %]
+ "aoColumnDefs": [
+ { "aTargets": [ 0 ], "bSortable": false, "bSearchable": false },
+ { 'sType': "title-string", 'aTargets' : [ 'title-string'] }
+ ],
+ [% END %]
+ "bPaginate": false
+ }));
+ $("#selectallbutton").click(function() {
+ $("#borrowerst").find("input:checkbox").each(function() {
+ $(this).prop("checked", true);
+ });
+ return false;