UI feature - Basic checkbox/group operations (#861)

This commit is contained in:
dgtlmoon
2022-08-18 14:48:21 +02:00
committed by GitHub
parent f04adb7202
commit e2a6865932
5 changed files with 76 additions and 2 deletions

View File

@@ -22,5 +22,18 @@ $(function () {
});
});
// checkboxes - check all
$("#check-all").click(function (e) {
$('input[type=checkbox]').not(this).prop('checked', this.checked);
});
// checkboxes - show/hide buttons
$("input[type=checkbox]").click(function (e) {
if ($('input[type=checkbox]:checked').length) {
$('#checkbox-operations').slideDown();
} else {
$('#checkbox-operations').slideUp();
}
});
});