From 3657def9097d0b05cf30e18ea3d6d531ea0301bb Mon Sep 17 00:00:00 2001 From: fredtempez Date: Thu, 12 Oct 2023 19:14:58 +0200 Subject: [PATCH] user auto submit --- core/module/user/user.php | 2 +- core/module/user/view/index/index.js.php | 13 ++++++++++++- core/module/user/view/index/index.php | 6 ------ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/core/module/user/user.php b/core/module/user/user.php index da831b3..c6071a4 100644 --- a/core/module/user/user.php +++ b/core/module/user/user.php @@ -444,7 +444,7 @@ class user extends common case "0": break; case "3": - self::$courseGroups['30'] = 'Administrateur'; + self::$courseGroups['3'] = 'Administrateur'; break; case "1": case "2": diff --git a/core/module/user/view/index/index.js.php b/core/module/user/view/index/index.js.php index babc715..2735ebb 100644 --- a/core/module/user/view/index/index.js.php +++ b/core/module/user/view/index/index.js.php @@ -10,4 +10,15 @@ * @license CC Attribution-NonCommercial-NoDerivatives 4.0 International * @link http://zwiicms.fr/ */ -$(".userDelete").on("click",(function(){var _this=$(this);return message="",core.confirm(message,(function(){$(location).attr("href",_this.attr("href"))}))})); \ No newline at end of file + +$(document).ready((function () { + $(".userDelete").on("click", (function () { + var _this = $(this); + return message = "", core.confirm(message, (function () { + $(location).attr("href", _this.attr("href")) + })) + })); + $("#userFilterGroup, #userFilterFirstName, #userFilterLastName").change(function() { + $("#userFilterUserForm").submit(); + }); +})); \ No newline at end of file diff --git a/core/module/user/view/index/index.php b/core/module/user/view/index/index.php index 80e36a3..582bc6d 100644 --- a/core/module/user/view/index/index.php +++ b/core/module/user/view/index/index.php @@ -64,12 +64,6 @@ 'selected' => isset($_POST['userFilterLastName']) ? $_POST['userFilterLastName'] : 'all', ]); ?> -
- 'Filtrer', - 'uniqueSubmission' => true - ]); ?> -