diff --git a/Js/fonctions.js b/Js/fonctions.js index 6e88d07c..c0f707d7 100755 --- a/Js/fonctions.js +++ b/Js/fonctions.js @@ -30799,44 +30799,40 @@ function enregistrer_modif_reseaus() } -function afficher_reseau_categorie() -{ - - - codeProduit=$("#codeProduit").val(); +/** + * Affiche les réseaux (Disponibles vs Ajoutés) pour un produit + */ +function afficher_reseau_categorie() { + const codeProduit = $("#codeProduit").val(); - if (codeProduit<=" ") - { - v_msg="Veuillez sélectionner un produit!"; - v_msgEng="Please select a category!"; - alert_ebene(v_msg, v_msgEng); - - $('#div_produitreseau').html(""); + if (!codeProduit || codeProduit.trim() === "") { + alert_ebene("Veuillez sélectionner un produit!", "Please select a product!"); + $('#div_produitreseau').html(""); + return; + } - return; - } + // Loader Standard Neutral Pro + const loader = ` +
| = _("Libellé du Réseau") ?> | += _("Action") ?> | +
|---|---|
| = $this->nettoyer($v['libelle']) ?> | ++ + | +
| = _("RESEAUX DE SOINS DISPONIBLES") ?> | - -=> | -
|---|---|
| - | |
| = _("Action") ?> | += _("Libellé du Réseau") ?> | +
|---|---|
| + + | += $this->nettoyer($v['reseausoin']) ?> | +
| <= | -= _("RESEAUX DE SOINS AJOUTES") ?> | - -
|---|---|
| - | |
| - - | = $this->nettoyer($reseausaccessible['reseausoin']) ?> | - -