Commit 2672767e authored by Thibaut Vallee's avatar Thibaut Vallee Committed by David Surville
Browse files

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

parent 88f0b576
Loading
Loading
Loading
Loading
+13 −3
Changes for view/unicaen-privilege/privilege-categorie/index.phtml: 13 added lines, 3 removed lines.
Original line number Diff line number Diff line
@@ -160,13 +160,23 @@ $canProvider = $this->isAllowed(PrivilegePrivileges::getResourceId(PrivilegePriv
        $('[data-toggle="popover"]').popover();

        if(jQuery().dataTable) {

            $('#privilege-categorie-liste').DataTable({
                "lengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "Tous"]],
                "order": [[4, 'asc']],
                "paging": false,
                "searching": false,
                "info": false,
                "language": {
                    'lengthMenu': "Afficher _MENU_ éléments",
                    "search": "Filtre de recherche : _INPUT_",
                    "loadingRecords": "Chargement en cours...",
                    'info': "<small class=\"text-highlight\">Affichage : <strong><i class=\"far fa-list-alt\"></i> _START_ - _END_ sur _TOTAL_</strong></small>",
                    'infoEmpty': "",
                    'infoFiltered': "<small class=\"text-highlight\">(_MAX_ &eacute;l&eacute;ments au total)</small>",
                    'emptyTable': "Aucune donnée disponible.",
                    'zeroRecords': "Aucun enregistrement trouvé.",
                    "paginate": {
                        "previous": "<i class=\"fas fa-chevron-left\"></i>",
                        "next": "<i class=\"fas fa-chevron-right\"></i>"
                    }
                },
                "createdRow": function (row, data, index) {
                    $('.pop-ajax', row).popAjax();