praiadeseselle/site/modules/ProcessDatabaseBackups/ProcessDatabaseBackups.js
2022-03-08 15:55:41 +01:00

18 lines
No EOL
431 B
JavaScript

jQuery(document).ready(function($) {
$('.btn-delete-checked').hide();
$('.delete-checkbox').on('input', function() {
var numChecked = $('.delete-checkbox:checked').length;
var $otherButtons = $('.btn-upload, .btn-backup');
var $deleteButton = $('.btn-delete-checked');
if(numChecked > 0) {
$otherButtons.hide();
$deleteButton.show();
} else {
$otherButtons.show();
$deleteButton.hide();
}
});
});