Lines 596-614
$(document).ready(function() {
Link Here
|
596 |
fnCallback(json) |
596 |
fnCallback(json) |
597 |
} ); |
597 |
} ); |
598 |
}, |
598 |
}, |
|
|
599 |
"rowGroup":{ |
600 |
"dataSrc": "issued_today", |
601 |
"startRender": function ( rows, group ) { |
602 |
if ( group ) { |
603 |
return $('<tr/>').append("<td colspan='100%'><strong>" + TODAYS_CHECKOUTS + "</strong></td>"); |
604 |
} else { |
605 |
return $('<tr/>').append("<td colspan='100%'><strong>" + PREVIOUS_CHECKOUTS + "</strong></td>"); |
606 |
} |
607 |
} |
608 |
}, |
599 |
"fnInitComplete": function(oSettings, json) { |
609 |
"fnInitComplete": function(oSettings, json) { |
600 |
// Disable rowGrouping plugin after first use |
610 |
// Disable rowGrouping plugin after first use |
601 |
// so any sorting on the table doesn't use it |
611 |
// so any sorting on the table doesn't use it |
602 |
var oSettings = issuesTable.fnSettings(); |
612 |
//var oSettings = issuesTable.fnSettings(); |
603 |
|
|
|
604 |
for (f = 0; f < oSettings.aoDrawCallback.length; f++) { |
605 |
if (oSettings.aoDrawCallback[f].sName == 'fnRowGrouping') { |
606 |
oSettings.aoDrawCallback.splice(f, 1); |
607 |
break; |
608 |
} |
609 |
} |
610 |
|
611 |
oSettings.aaSortingFixed = null; |
612 |
|
613 |
|
613 |
// Build a summary of checkouts grouped by itemtype |
614 |
// Build a summary of checkouts grouped by itemtype |
614 |
var checkoutsByItype = json.aaData.reduce(function (obj, row) { |
615 |
var checkoutsByItype = json.aaData.reduce(function (obj, row) { |
Lines 628-640
$(document).ready(function() {
Link Here
|
628 |
.append(ul) |
629 |
.append(ul) |
629 |
.insertBefore(oSettings.nTableWrapper) |
630 |
.insertBefore(oSettings.nTableWrapper) |
630 |
}, |
631 |
}, |
631 |
}, columns_settings_issues_table).rowGrouping( |
632 |
}, columns_settings_issues_table); |
632 |
{ |
|
|
633 |
iGroupingColumnIndex: 1, |
634 |
iGroupingOrderByColumnIndex: 0, |
635 |
sGroupingColumnSortDirection: "asc" |
636 |
} |
637 |
); |
638 |
|
633 |
|
639 |
if ( $("#issues-table").length ) { |
634 |
if ( $("#issues-table").length ) { |
640 |
$("#issues-table_processing").position({ |
635 |
$("#issues-table_processing").position({ |
641 |
- |
|
|