This commit is contained in:
KONE SOREL 2026-03-06 09:06:58 +00:00
parent a8d56ffa39
commit 1c14481afb

View File

@ -92,14 +92,18 @@
</div>
<script>
$(document).ready(function() {
// Initialisation
var tableLiens = initSmartTable('.table', 'Gestion des Liens de Parenté');
// On utilise l'événement natif du navigateur pour être sûr que TOUS les scripts (dont jQuery) sont chargés
window.addEventListener('load', function() {
// Maintenant jQuery ($) est forcément défini
if (typeof jQuery !== 'undefined') {
// Initialisation
var tableLiens = initSmartTable('.table', 'Gestion des Liens de Parenté');
// Liaison du champ de recherche personnalisé
$('#globalSearch').on('keyup', function() {
tableLiens.search(this.value).draw();
});
// Liaison du champ de recherche personnalisé
$('#globalSearch').on('keyup', function() {
tableLiens.search(this.value).draw();
});
}
});
</script>