Commit d2672c9c authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Tâche #12229: Solution de contournement : abandon de l'affichage dans une modale via AJAX

parent a7250df0
Loading
Loading
Loading
Loading
Loading
+0 −1
Changes for module/Application/view/application/these/depot.phtml: 0 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -209,7 +209,6 @@ $toggleDetailsDepotInitial = clone $this->toggleDetails('div-depot-initial');

        // Diffusion enregistrée dans la modale
        body.on("event-diffusion-modified", function (event) {
            // Les métadonnées viennent d'être modifiées.
            event.div.modal('hide'); // ferme la fenêtre modale
            runInCascade([
                { func: diffusionLoader, effect: false },
+2 −2
Changes for module/Application/view/application/these/diffusion.phtml: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -34,13 +34,13 @@ $canEdit = $this->isAllowed($these, ThesePrivileges::THESE_SAISIE_AUTORISATION_D
                <?php echo $this->partial('application/these/partial/diffusion') ?>
                <?php if ($canEdit): ?>
                    <p><a href="<?php echo $modifierDiffusionUrl ?>"
                          class="btn btn-default ajax-modal"
                          class="btn btn-default zajax-modal"
                          data-event="event-diffusion-modified"><span class="glyphicon glyphicon-pencil"></span> Modifier</a></p>
                <?php endif ?>
            <?php else: ?>
                <?php if ($canEdit): ?>
                    <p><a href="<?php echo $modifierDiffusionUrl ?>"
                          class="btn btn-primary ajax-modal"
                          class="btn btn-primary zajax-modal"
                          data-event="event-diffusion-modified"><span class="glyphicon glyphicon-pencil"></span> Compléter</a></p>
                <?php endif ?>
            <?php endif ?>