Commit 9f51829f authored by Thibaut Vallee's avatar Thibaut Vallee
Browse files

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

parent 71570d2c
Loading
Loading
Loading
Loading
+22 −20
Original line number Diff line number Diff line
@@ -159,6 +159,7 @@ $canEffacer = $this->isAllowed(RolePrivileges::getResourceId(RolePrivileges:

        $('[data-toggle="popover"]').popover();

        if(jQuery().dataTable) {
            $('#role-liste').DataTable({
                "lengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "Tous"]],
                "language": {
@@ -179,5 +180,6 @@ $canEffacer = $this->isAllowed(RolePrivileges::getResourceId(RolePrivileges:
                    $('.pop-ajax', row).popAjax();
                },
            });
        }
    } );
</script>
 No newline at end of file