Commit 71570d2c authored by Thibaut Vallee's avatar Thibaut Vallee
Browse files

ajout d'un controle pour éviter la dépendance a DataTable

parent 506e70d5
Loading
Loading
Loading
Loading
+22 −21
Original line number Diff line number Diff line
@@ -68,7 +68,7 @@ use UnicaenUtilisateur\Entity\Db\UserInterface;

<script>
    $(function () {

        if(jQuery().dataTable) {
            $('#utilisateur-liste').DataTable({
                "lengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "Tous"]],
                "language": {
@@ -89,6 +89,7 @@ use UnicaenUtilisateur\Entity\Db\UserInterface;
                    $('.pop-ajax', row).popAjax();
                },
            });
        }

        $('#utilisateur-liste tbody').on('click', 'tr', function () {
            var href = $(this).find("a").attr("href");