diff --git a/Js/fonctions.js b/Js/fonctions.js index 4f4d910b..76272cd2 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -46143,6 +46143,24 @@ $(function(){ document.getElementById('Production').style.display="none"; document.getElementById('Medical').style.display="none"; document.getElementById('Prestation').style.display="none"; + + // SYSTÈME DE RECHERCHE DYNAMIQUE + $("#globalSearch").on("keyup", function() { + var value = $(this).val().toLowerCase(); + $(".searchable-row").filter(function() { + $(this).toggle($(this).text().toLowerCase().indexOf(value) > -1) + }); + }); + + // Gestion visuelle des boutons nav-link + const navButtons = document.querySelectorAll('.nav-pills .nav-link'); + navButtons.forEach(btn => { + btn.addEventListener('click', function() { + navButtons.forEach(b => b.classList.remove('active')); + this.classList.add('active'); + }); + }); + }else if($('#nomForm').val()=="listebareme"){ codeGcAssureur = $("#codeGcAssureur").val(); codeProduit = $("#codeProduit").val(); @@ -91985,5 +92003,4 @@ function enregistrer_modif_parametres_med() console.log("Confirmation refusée"); } }); - } \ No newline at end of file