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