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,6 +10,8 @@
* @license CC Attribution-NonCommercial-NoDerivatives 4.0 International * @license CC Attribution-NonCommercial-NoDerivatives 4.0 International
* @link http://zwiicms.fr/ * @link http://zwiicms.fr/
*/ */
$(document).ready((function () {
(".userDelete").on("click", (function () { (".userDelete").on("click", (function () {
var _this = $(this); var _this = $(this);
return message = "<?php echo helper::translate('Confirmer la désinscription de cet utilisateur');?>", core.confirm(message, (function () { return message = "<?php echo helper::translate('Confirmer la désinscription de cet utilisateur');?>", core.confirm(message, (function () {
@ -22,3 +24,7 @@
$(location).attr("href", _this.attr("href")) $(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>