diff --git a/Js/fonctions.js b/Js/fonctions.js index 1475e035..903cbd18 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -48270,6 +48270,7 @@ function cocherDecocherUn(fichier_lister,id){ } +/* function filtreTableReference(numeroTable){ donnees = "numeroTable="+numeroTable; @@ -48299,6 +48300,33 @@ function filtreTableReference(numeroTable){ }); } +*/ + +function filtreTableReference(numeroTable) { + const racineWeb = $("#racineWeb").val(); + const $divListe = $("#div_listetables"); + + /* + // 1. On tue l'existant et on vide le BODY des menus flottants + if ($("#listetables").length) { + $("#listetables").selectpicker('destroy'); + } + $('.bootstrap-select.bs-container').remove(); + $divListe.empty(); + */ + + $.ajax({ + url: racineWeb + "Ajaxfiltretablesreference/", + type : 'post', + data: { numeroTable: numeroTable }, + success: function(data) { + // 2. On injecte le HTML + $divListe.html(data); + const $select = $("#listetables"); + $divListe.find('.dropdown-toggle').focus(); + } + }); +} function supprimer_choix(){