user auto submit

This commit is contained in:
Fred Tempez 2023-10-12 19:14:58 +02:00
parent a366f09bab
commit 3657def909
3 changed files with 13 additions and 8 deletions

View File

@ -444,7 +444,7 @@ class user extends common
case "0": case "0":
break; break;
case "3": case "3":
self::$courseGroups['30'] = 'Administrateur'; self::$courseGroups['3'] = 'Administrateur';
break; break;
case "1": case "1":
case "2": case "2":

View File

@ -10,4 +10,15 @@
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International * @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
* @link http://zwiicms.fr/ * @link http://zwiicms.fr/
*/ */
$(".userDelete").on("click",(function(){var _this=$(this);return message="<?php echo helper::translate('Confirmer la suppression de cet utilisateur');?>",core.confirm(message,(function(){$(location).attr("href",_this.attr("href"))}))}));
$(document).ready((function () {
$(".userDelete").on("click", (function () {
var _this = $(this);
return message = "<?php echo helper::translate('Confirmer la suppression de cet utilisateur');?>", core.confirm(message, (function () {
$(location).attr("href", _this.attr("href"))
}))
}));
$("#userFilterGroup, #userFilterFirstName, #userFilterLastName").change(function() {
$("#userFilterUserForm").submit();
});
}));

View File

@ -64,12 +64,6 @@
'selected' => isset($_POST['userFilterLastName']) ? $_POST['userFilterLastName'] : 'all', 'selected' => isset($_POST['userFilterLastName']) ? $_POST['userFilterLastName'] : 'all',
]); ?> ]); ?>
</div> </div>
<div class="col2 offset1">
<?php echo template::submit('userFilterSubmit', [
'value' => 'Filtrer',
'uniqueSubmission' => true
]); ?>
</div>
</div> </div>
</div> </div>
</div> </div>