diff --git a/Js/fonctions.js b/Js/fonctions.js index 35d6cb23..d3272ec8 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -47471,40 +47471,31 @@ function chargerFichiersTable() { const racineWeb = $("#racineWeb").val(); const codeLangue = $("#codeLangue").val(); - // 1. Si aucune table n'est sélectionnée, on nettoie tout if (!idTable || idTable === "") { $('#div_fichiers_table, #div_entete_table, #div_lister_table, #div_maj_table').empty(); return; } - // 2. Feedback visuel global - const loadingHtml = ` -
-
-

${(codeLangue === "en_US") ? "Loading table data..." : "Chargement des données..."}

-
`; - + // Feedback visuel + const loadingHtml = `...`; $('#div_lister_table').html(loadingHtml); - $('#div_maj_table').html(""); // On vide la zone de saisie pour le nouveau contexte + $('#div_maj_table').html(""); - // 3. Appel AJAX pour récupérer les fichiers/paramètres de la table $.ajax({ url: racineWeb + "Ajaxaccesfichiersautrestables/", type: 'post', data: { id: idTable }, success: function(data) { - // 1. On ferme le formulaire précédent (ce qui affiche le bouton AJOUTER) - fermeFormulaire(); - - // 2. On injecte les fichiers de configuration (hidden inputs) - $('#div_fichiers_table').html(data); - - // 3. On affiche les données - afficheDonneesTableChoisie($('#fichier_lister').val()); - }, + fermeFormulaire(); + $('#div_fichiers_table').html(data); + afficheDonneesTableChoisie($('#fichier_lister').val()); + + // --- CORRECTION ICI --- + // On force le SelectPicker à se rafraîchir pour ne pas perdre le design + $('#listetables').selectpicker('refresh'); + }, error: function(xhr) { - toastr.error((codeLangue === "en_US") ? "Error accessing table files" : "Erreur d'accès aux fichiers de la table"); - console.error(xhr.responseText); + toastr.error((codeLangue === "en_US") ? "Error..." : "Erreur..."); } }); } diff --git a/Vue/Ajaxtblisteractivite/index.php b/Vue/Ajaxtblisteractivite/index.php index 94a562a8..7796c19c 100755 --- a/Vue/Ajaxtblisteractivite/index.php +++ b/Vue/Ajaxtblisteractivite/index.php @@ -7,7 +7,7 @@
- +
diff --git a/Vue/Ajaxtblisteraffection/index.php b/Vue/Ajaxtblisteraffection/index.php index 53d263d3..b58ce212 100755 --- a/Vue/Ajaxtblisteraffection/index.php +++ b/Vue/Ajaxtblisteraffection/index.php @@ -7,7 +7,7 @@
- +
diff --git a/Vue/Ajaxtblisterbureau/index.php b/Vue/Ajaxtblisterbureau/index.php index a8dcdc6f..00704bc0 100755 --- a/Vue/Ajaxtblisterbureau/index.php +++ b/Vue/Ajaxtblisterbureau/index.php @@ -7,7 +7,7 @@
- +
diff --git a/Vue/Ajaxtblistercommerciaux/index.php b/Vue/Ajaxtblistercommerciaux/index.php index 2f35afbb..723fc051 100755 --- a/Vue/Ajaxtblistercommerciaux/index.php +++ b/Vue/Ajaxtblistercommerciaux/index.php @@ -7,7 +7,7 @@
- +
diff --git a/Vue/Ajaxtblisterentetetrancheage/index.php b/Vue/Ajaxtblisterentetetrancheage/index.php index 24622695..15b0f1b9 100755 --- a/Vue/Ajaxtblisterentetetrancheage/index.php +++ b/Vue/Ajaxtblisterentetetrancheage/index.php @@ -7,7 +7,7 @@
- +
diff --git a/Vue/Ajaxtblisteretendueterritoire/index.php b/Vue/Ajaxtblisteretendueterritoire/index.php index 32e82801..0d4c5b08 100755 --- a/Vue/Ajaxtblisteretendueterritoire/index.php +++ b/Vue/Ajaxtblisteretendueterritoire/index.php @@ -7,7 +7,7 @@
- +
diff --git a/Vue/Ajaxtblisterintermediaires/index.php b/Vue/Ajaxtblisterintermediaires/index.php index ada4e0c7..603c1d25 100755 --- a/Vue/Ajaxtblisterintermediaires/index.php +++ b/Vue/Ajaxtblisterintermediaires/index.php @@ -2,7 +2,7 @@
- +
0 diff --git a/Vue/Ajaxtblisterlocalite/index.php b/Vue/Ajaxtblisterlocalite/index.php index c25208a0..001f32d3 100755 --- a/Vue/Ajaxtblisterlocalite/index.php +++ b/Vue/Ajaxtblisterlocalite/index.php @@ -2,7 +2,7 @@
- +
0 diff --git a/Vue/Ajaxtblistermoyenpaiement/index.php b/Vue/Ajaxtblistermoyenpaiement/index.php index a4ec60e0..a47a3e3a 100755 --- a/Vue/Ajaxtblistermoyenpaiement/index.php +++ b/Vue/Ajaxtblistermoyenpaiement/index.php @@ -7,7 +7,7 @@
- +
diff --git a/Vue/Ajaxtblisterpays/index.php b/Vue/Ajaxtblisterpays/index.php index 81d147b9..f64eec2c 100755 --- a/Vue/Ajaxtblisterpays/index.php +++ b/Vue/Ajaxtblisterpays/index.php @@ -2,7 +2,7 @@
- +
0 diff --git a/Vue/Ajaxtblisterpointvente/index.php b/Vue/Ajaxtblisterpointvente/index.php index 37e53507..1cd13110 100755 --- a/Vue/Ajaxtblisterpointvente/index.php +++ b/Vue/Ajaxtblisterpointvente/index.php @@ -7,7 +7,7 @@
- +
diff --git a/Vue/Ajaxtblistersecteuractivite/index.php b/Vue/Ajaxtblistersecteuractivite/index.php index 27884215..28c0750f 100755 --- a/Vue/Ajaxtblistersecteuractivite/index.php +++ b/Vue/Ajaxtblistersecteuractivite/index.php @@ -2,7 +2,7 @@
- +
0 diff --git a/Vue/Ajaxtblisterservice/index.php b/Vue/Ajaxtblisterservice/index.php index 09a8a685..684e6297 100755 --- a/Vue/Ajaxtblisterservice/index.php +++ b/Vue/Ajaxtblisterservice/index.php @@ -2,7 +2,7 @@
- +
0 diff --git a/Vue/Ajaxtblistertitre/index.php b/Vue/Ajaxtblistertitre/index.php index 0cef34b9..febbacf5 100755 --- a/Vue/Ajaxtblistertitre/index.php +++ b/Vue/Ajaxtblistertitre/index.php @@ -2,7 +2,7 @@
- +
0 diff --git a/Vue/Ajaxtblisterville/index.php b/Vue/Ajaxtblisterville/index.php index 0dc682bc..63c3edf7 100755 --- a/Vue/Ajaxtblisterville/index.php +++ b/Vue/Ajaxtblisterville/index.php @@ -2,7 +2,7 @@
- +
0