df
This commit is contained in:
parent
a8d56ffa39
commit
1c14481afb
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user