From 44391a57691ad7b6c2301b448331322cf8ad9f34 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 12 Oct 2023 19:37:13 +0200 Subject: [PATCH] fix filter --- core/module/course/view/user/user.js.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/core/module/course/view/user/user.js.php b/core/module/course/view/user/user.js.php index 5d4a01d..c35fa27 100644 --- a/core/module/course/view/user/user.js.php +++ b/core/module/course/view/user/user.js.php @@ -12,19 +12,20 @@ */ $(document).ready((function () { - (".userDelete").on("click", (function () { + $("#courseFilterGroup, #courseFilterFirstName, #courseFilterLastName").change(function () { + $("#courseFilterUserForm").submit(); + }); + $(".userDelete").on("click", (function () { var _this = $(this); return message = "", core.confirm(message, (function () { $(location).attr("href", _this.attr("href")) })) })); - (".userDeleteAll").on("click", (function () { + $(".userDeleteAll").on("click", (function () { var _this = $(this); return message = "", core.confirm(message, (function () { $(location).attr("href", _this.attr("href")) })) })); - $("#courseFilterGroup, #courseFilterFirstName, #courseFilterLastName").change(function () { - $("#courseFilterUserForm").submit(); - }); + })); \ No newline at end of file