From 5c13fe89ea3fb41cca41d3d4d9b12aa2d5d46f52 Mon Sep 17 00:00:00 2001 From: F TEMPEZ Date: Thu, 23 Nov 2023 15:08:19 +0100 Subject: [PATCH] =?UTF-8?q?ic=C3=B4nes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/course/course.php | 2 +- core/module/course/view/users/users.php | 4 ++-- core/module/course/view/usersAdd/usersAdd.js.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/module/course/course.php b/core/module/course/course.php index 6b7c20c..bb0169e 100644 --- a/core/module/course/course.php +++ b/core/module/course/course.php @@ -557,7 +557,7 @@ class course extends common // Valeurs en sortie $this->addOutput([ - 'title' => sprintf(helper::translate('Inscriptions dans le contenu %s'), $this->getData(['course', $courseId, 'title'])), + 'title' => sprintf(helper::translate('Inscriptions %s'), $this->getData(['course', $courseId, 'title'])), 'view' => 'users', ]); } diff --git a/core/module/course/view/users/users.php b/core/module/course/view/users/users.php index 1dbd647..638911d 100644 --- a/core/module/course/view/users/users.php +++ b/core/module/course/view/users/users.php @@ -25,8 +25,8 @@ 'buttonGreen', 'href' => helper::baseUrl() . 'course/usersAdd/' . $this->getUrl(2), - 'value' => template::ico('plus'), - 'help' => 'Inscrire', + 'value' => template::ico('users'), + 'help' => 'Inscription', ]) ?> diff --git a/core/module/course/view/usersAdd/usersAdd.js.php b/core/module/course/view/usersAdd/usersAdd.js.php index bf7f95b..779c359 100644 --- a/core/module/course/view/usersAdd/usersAdd.js.php +++ b/core/module/course/view/usersAdd/usersAdd.js.php @@ -16,8 +16,8 @@ $(document).ready((function () { $("#courseFilterGroup, #courseFilterFirstName, #courseFilterLastName").change(function () { saveCheckboxState(); $("#courseUsersAddForm").submit(); - }); + var table = $('#dataTables').DataTable({ language: { url: "core/vendor/datatables/french.json" @@ -27,7 +27,6 @@ $(document).ready((function () { target: 3, orderable: false, searchable: false, - } ] }); @@ -46,6 +45,7 @@ $(document).ready((function () { // Empty local storage after submit $("#courseUsersAddSubmit").on("click", function () { + localStorage.setItem('checkboxState', JSON.stringify({})); });