Commit 2a2d7932 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 7e4fbda4
Loading
Loading
Loading
Loading
+12 −3
Original line number Diff line number Diff line
@@ -185,11 +185,20 @@ echo $this->headStyle()->appendStyle($css);

        if(jQuery().dataTable) {
            $('#role-liste').DataTable({
                "paging": false,
                "searching": false,
                "info": false,
                "lengthMenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, "Tous"]],
                "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();