df
This commit is contained in:
parent
09b3d4bace
commit
806b3add57
|
|
@ -52,11 +52,10 @@
|
|||
</ul>
|
||||
|
||||
<div class="tab-content border-0">
|
||||
|
||||
<div class="tab-pane fade show active" id="tab-polices" role="tabpanel">
|
||||
<div class="card border-0 shadow-sm">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover align-middle mb-0 datatable-inter" style="font-size: 9pt; width:100%;">
|
||||
<table class="table table-hover align-middle mb-0 datatable-inter" id="tablePolicesGarant" style="width:100%;">
|
||||
<thead class="bg-light text-muted fw-bold">
|
||||
<tr>
|
||||
<th class="text-center py-3"><?= _("No Police") ?></th>
|
||||
|
|
@ -272,13 +271,11 @@
|
|||
</style>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
if(typeof initSmartTable === 'function') {
|
||||
// On attend que jQuery ET DataTables soient disponibles
|
||||
var checkDT = setInterval(function() {
|
||||
if (typeof initSmartTable === 'function') {
|
||||
initSmartTable('.datatable-inter', 'Polices_Garant', false);
|
||||
clearInterval(checkDT);
|
||||
}
|
||||
// Ajustement des colonnes lors du changement d'onglet
|
||||
$('button[data-bs-toggle="tab"]').on('shown.bs.tab', function (e) {
|
||||
$($.fn.dataTable.tables(true)).DataTable().columns.adjust();
|
||||
});
|
||||
});
|
||||
}, 100); // Vérifie toutes les 100ms
|
||||
</script>
|
||||
Loading…
Reference in New Issue
Block a user