vf
This commit is contained in:
parent
1c14481afb
commit
f47d1f9c73
|
|
@ -70,14 +70,18 @@
|
|||
</div>
|
||||
|
||||
<script>
|
||||
$(document).ready(function() {
|
||||
// Initialisation
|
||||
var tableBons = initSmartTable('.table', 'Gestion des Bons');
|
||||
// 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 tableBons = initSmartTable('.table', 'Gestion des Bons');
|
||||
|
||||
// Liaison du champ de recherche personnalisé
|
||||
$('#globalSearch').on('keyup', function() {
|
||||
tableBons.search(this.value).draw();
|
||||
});
|
||||
// Liaison du champ de recherche personnalisé
|
||||
$('#globalSearch').on('keyup', function() {
|
||||
tableBons.search(this.value).draw();
|
||||
});
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user