Bug 28854: Add ordering to checkin validation modal

This enhancement adds simple dataTable ordering to the verification
modal table at bundle checkin time.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2021-11-24 10:16:53 +00:00 committed by Tomas Cohen Arazi
parent 34c0fbe755
commit a6dbcf995f
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -426,7 +426,7 @@
<div class="modal-content">
<form method="post">
<div class="modal-header">
<h3>Please confirm bundle contents</h3>
<h3>Please confirm bundle contents for [% item.barcode | html %]</h3>
</div>
<div class="modal-body">
@ -1515,6 +1515,13 @@
});
});
$('#items-bundle-contents-table').dataTable($.extend(true, {}, dataTablesDefaults, {
"bFilter": false,
"bPaginate": false,
"bInfo": false,
"order": [[ 1, 'asc' ], [ 0, 'asc' ]]
}));
// print modals
$('.modal.printable').on('shown.bs.modal', function() {
$('.modal-dialog', this).addClass('focused');