xqs
This commit is contained in:
parent
806b3add57
commit
c3f216ae98
|
|
@ -271,11 +271,16 @@
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// On attend que jQuery ET DataTables soient disponibles
|
|
||||||
var checkDT = setInterval(function() {
|
var checkDT = setInterval(function() {
|
||||||
if (typeof initSmartTable === 'function') {
|
if (typeof initSmartTable === 'function') {
|
||||||
initSmartTable('.datatable-inter', 'Polices_Garant', false);
|
initSmartTable('.datatable-inter', 'Polices_Garant', false);
|
||||||
|
|
||||||
|
// AJOUT : Force le recalcul des colonnes quand on change d'onglet
|
||||||
|
$('button[data-bs-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||||
|
$($.fn.dataTable.tables(true)).DataTable().columns.adjust();
|
||||||
|
});
|
||||||
|
|
||||||
clearInterval(checkDT);
|
clearInterval(checkDT);
|
||||||
}
|
}
|
||||||
}, 100); // Vérifie toutes les 100ms
|
}, 100);
|
||||||
</script>
|
</script>
|
||||||
Loading…
Reference in New Issue
Block a user