|
Lines 607-616
$(document).ready(function() {
Link Here
|
| 607 |
} |
607 |
} |
| 608 |
}, |
608 |
}, |
| 609 |
"fnInitComplete": function(oSettings, json) { |
609 |
"fnInitComplete": function(oSettings, json) { |
| 610 |
// Disable rowGrouping plugin after first use |
|
|
| 611 |
// so any sorting on the table doesn't use it |
| 612 |
//var oSettings = issuesTable.fnSettings(); |
| 613 |
|
| 614 |
// Build a summary of checkouts grouped by itemtype |
610 |
// Build a summary of checkouts grouped by itemtype |
| 615 |
var checkoutsByItype = json.aaData.reduce(function (obj, row) { |
611 |
var checkoutsByItype = json.aaData.reduce(function (obj, row) { |
| 616 |
obj[row.type_for_stat] = (obj[row.type_for_stat] || 0) + 1; |
612 |
obj[row.type_for_stat] = (obj[row.type_for_stat] || 0) + 1; |
| 617 |
- |
|
|