This commit is contained in:
KONE SOREL 2026-03-14 16:58:24 +00:00
parent 806b3add57
commit c3f216ae98

View File

@ -271,11 +271,16 @@
</style>
<script>
// On attend que jQuery ET DataTables soient disponibles
var checkDT = setInterval(function() {
if (typeof initSmartTable === 'function') {
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);
}
}, 100); // Vérifie toutes les 100ms
}, 100);
</script>