Commit 0115939f authored by Thibaut Vallee's avatar Thibaut Vallee
Browse files

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

parent ad1ec863
Loading
Loading
Loading
Loading
+25 −23
Original line number Diff line number Diff line
@@ -174,6 +174,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"]],
                "columnDefs": [
@@ -197,5 +198,6 @@ $canEffacer = $this->isAllowed(RolePrivileges::getResourceId(RolePrivileges:
                    $('.pop-ajax', row).popAjax();
                },
            });
        }
    } );
</script>
 No newline at end of file