Nur Details von einem Patienten #19

This commit is contained in:
gw3000 2023-07-18 20:38:14 +02:00
parent 7382f40ec7
commit 43431789b7
5 changed files with 45 additions and 10 deletions

View file

@ -16,7 +16,7 @@
<script>
$(document).ready(function () {
$('#t__aviary_all').DataTable({
let table = $('#t__aviary_all').DataTable({
language: {
url: 'https://cdn.datatables.net/plug-ins/1.11.3/i18n/de_de.json',
},
@ -26,7 +26,14 @@
columnDefs: [
{ responsivePriority: 1, targets: 0 },
]
})
});
table.on( 'responsive-display', function ( e, datatable, row, showHide, update ) {
table.rows().every( function () {
if (showHide && row.index() !== this.index() && this.child.isShown()) {
$('td', this.node()).eq(0).click();
}
});
});
})
</script>