bug fix bulk download

This commit is contained in:
giandonato.inverso@edempg.it
2024-03-04 14:36:18 +01:00
parent 15b5ece4f9
commit 98ae82a040
+6
View File
@@ -427,10 +427,16 @@
if (bulk_action) { if (bulk_action) {
bulk_action.on('change', function() { bulk_action.on('change', function() {
if ($(this).prop('checked')) { if ($(this).prop('checked')) {
const bulkActionDiv = document.getElementById('bulk-action-div');
bulkActionDiv.style.display = 'block';
$('input[name^=action]').each(function() { $('input[name^=action]').each(function() {
$(this).prop('checked', true); $(this).prop('checked', true);
}); });
} else { } else {
const bulkActionDiv = document.getElementById('bulk-action-div');
bulkActionDiv.style.display = 'none';
$('input[name^=action]').each(function() { $('input[name^=action]').each(function() {
$(this).prop('checked', false); $(this).prop('checked', false);
}); });