From 6b840ecaa98e64eb15014034042afaae44be43ae Mon Sep 17 00:00:00 2001 From: fredtempez Date: Sun, 15 Oct 2023 22:55:08 +0200 Subject: [PATCH] Masquer le tri dans la colonne du bouton en test --- core/module/course/course.php | 1 - core/module/course/view/user/user.js.php | 9 ++++++++- core/module/course/view/user/user.php | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/core/module/course/course.php b/core/module/course/course.php index 3ff7e11..7c0ceb0 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -788,7 +788,6 @@ class course extends common $count = 0; foreach ($array as $key => $value) { $count++; // Incrémente le compteur pour chaque clé associative trouvée - if (is_array($value)) { $count += $this->countPages($value); // Appelle récursivement la fonction si la valeur est un tableau } diff --git a/core/module/course/view/user/user.js.php b/core/module/course/view/user/user.js.php index 894be05..d91a3b9 100644 --- a/core/module/course/view/user/user.js.php +++ b/core/module/course/view/user/user.js.php @@ -30,7 +30,14 @@ $(document).ready((function () { $('#dataTables').DataTable({ language: { - url: "core/vendor/datatables/french.json"} + url: "core/vendor/datatables/french.json" + }, + "columnDefs": [ + { + target: 5, + searchable: false + } + ] }); })); \ No newline at end of file diff --git a/core/module/course/view/user/user.php b/core/module/course/view/user/user.php index f9ee0b9..65ef228 100644 --- a/core/module/course/view/user/user.php +++ b/core/module/course/view/user/user.php @@ -18,7 +18,7 @@ -
+
'Groupes / Profils',