Commit 0164c307 authored by Antony Le Courtes's avatar Antony Le Courtes
Browse files

UX Notes

parent b9182721
Loading
Loading
Loading
Loading
+16 −1
Changes for module/Intervenant/view/intervenant/note/index.phtml: 16 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -198,24 +198,39 @@ $this->headTitle()->append($title = "Notes sur l'intervenant");
    $(function () {
        $("body").on("note-edition", function (event, data) {
            str = window.location.href;
            event.div.modal('hide'); // ferme la fenêtre modale
            if (str.indexOf("tab=notes") !== -1) {
                window.location.reload();
            } else {
                window.location.assign(window.location.href + '?tab=notes');
            }
            window.location.reload();


        });
        $("body").on("note-suppression", function (event, data) {
            str = window.location.href;
            event.div.modal('hide'); // ferme la fenêtre modale
            if (str.indexOf("tab=notes") !== -1) {
                window.location.reload();
            } else {
                window.location.assign(window.location.href + '?tab=notes');
            }


        });


        $("body").on("note-envoi-email", function (event, data) {
            str = window.location.href;
            event.div.modal('hide'); // ferme la fenêtre modale
            if (str.indexOf("tab=notes") !== -1) {
                window.location.reload();
            } else {
                window.location.assign(window.location.href + '?tab=notes');
            }

        });

    });
</script>