Disable instead of hide edit button when selected items not on page [SCI-7460]

This commit is contained in:
Martin Artnik 2022-11-21 11:58:15 +01:00
parent d9897d6e7c
commit 5d41ea5fa7

View file

@ -572,9 +572,9 @@ var RepositoryDatatable = (function(global) {
).toArray().map((r) => parseInt(r.id, 10));
if (rowsSelected.every(r => visibleRowIds.includes(r))) {
$('#editRepositoryRecord').show();
$('#editRepositoryRecord').prop('disabled', false);
} else {
$('#editRepositoryRecord').hide();
$('#editRepositoryRecord').prop('disabled', true);
}
if ($('.repository-show').hasClass('archived')) {