user filter auto submit v35

This commit is contained in:
Fred Tempez 2023-10-12 19:18:29 +02:00
parent 3657def909
commit b00c0954f6
3 changed files with 18 additions and 18 deletions

View File

@ -50,7 +50,7 @@ class common
const ACCESS_TIMER = 1800;
// Numéro de version
const ZWII_VERSION = '1.0.34';
const ZWII_VERSION = '1.0.35';
// URL autoupdate
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/lms/';

View File

@ -10,15 +10,21 @@
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
* @link http://zwiicms.fr/
*/
(".userDelete").on("click", (function() {
var _this = $(this);
return message = "<?php echo helper::translate('Confirmer la désinscription de cet utilisateur');?>", core.confirm(message, (function() {
$(location).attr("href", _this.attr("href"))
}))
}));
(".userDeleteAll").on("click", (function() {
var _this = $(this);
return message = "<?php echo helper::translate('Confirmer la désinscription de tous les 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 désinscription de cet utilisateur');?>", core.confirm(message, (function () {
$(location).attr("href", _this.attr("href"))
}))
}));
(".userDeleteAll").on("click", (function () {
var _this = $(this);
return message = "<?php echo helper::translate('Confirmer la désinscription de tous les utilisateur');?>", core.confirm(message, (function () {
$(location).attr("href", _this.attr("href"))
}))
}));
$("#userFilterGroup, #userFilterFirstName, #userFilterLastName").change(function () {
$("#userFilterUserForm").submit();
});
}));

View File

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