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', ]); ?> -