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; const ACCESS_TIMER = 1800;
// Numéro de version // Numéro de version
const ZWII_VERSION = '1.0.34'; const ZWII_VERSION = '1.0.35';
// URL autoupdate // URL autoupdate
const ZWII_UPDATE_URL = 'https://forge.chapril.org/ZwiiCMS-Team/update/raw/branch/master/lms/'; 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 * @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
* @link http://zwiicms.fr/ * @link http://zwiicms.fr/
*/ */
(".userDelete").on("click", (function() {
var _this = $(this); $(document).ready((function () {
return message = "<?php echo helper::translate('Confirmer la désinscription de cet utilisateur');?>", core.confirm(message, (function() { (".userDelete").on("click", (function () {
$(location).attr("href", _this.attr("href")) 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() { (".userDeleteAll").on("click", (function () {
$(location).attr("href", _this.attr("href")) 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', 'selected' => isset($_POST['courseFilterLastName']) ? $_POST['courseFilterLastName'] : 'all',
]); ?> ]); ?>
</div> </div>
<div class="col2 offset1">
<?php echo template::submit('courseFilterSubmit', [
'value' => 'Filtrer',
'uniqueSubmission' => true
]); ?>
</div>
</div> </div>
</div> </div>
</div> </div>