Lines 657-669
function LoadIssuesTable() {
Link Here
|
657 |
dataSrc: "issued_today", |
657 |
dataSrc: "issued_today", |
658 |
startRender: function (rows, group) { |
658 |
startRender: function (rows, group) { |
659 |
if (group) { |
659 |
if (group) { |
660 |
return __("Today's checkouts"); |
660 |
return ( |
|
|
661 |
"<span>" + |
662 |
__("Today's checkouts") + |
663 |
" (<span class='today_count'></span>)</span>" |
664 |
); |
661 |
} else { |
665 |
} else { |
662 |
return __("Previous checkouts"); |
666 |
return ( |
|
|
667 |
"<span>" + |
668 |
__("Previous checkouts") + |
669 |
" (<span class='previous_count'></span>)</span>" |
670 |
); |
663 |
} |
671 |
} |
664 |
}, |
672 |
}, |
665 |
}, |
673 |
}, |
666 |
initComplete: function (oSettings, json) { |
674 |
initComplete: function (oSettings, json) { |
|
|
675 |
let todaysIssuesCount = 0; |
676 |
let previousIssuesCount = 0; |
677 |
|
678 |
json.aaData.forEach(function (issue) { |
679 |
if (issue.issued_today) { |
680 |
todaysIssuesCount++; |
681 |
} else { |
682 |
previousIssuesCount++; |
683 |
} |
684 |
}); |
685 |
|
686 |
$(".previous_count").text(previousIssuesCount); |
687 |
$(".today_count").text(todaysIssuesCount); |
688 |
|
667 |
CheckRenewCheckinBoxes(); |
689 |
CheckRenewCheckinBoxes(); |
668 |
|
690 |
|
669 |
// Build a summary of checkouts grouped by itemtype |
691 |
// Build a summary of checkouts grouped by itemtype |
670 |
- |
|
|