Merge pull request #4629 from artoscinote/ma_SCI_7460

Disable instead of hide edit button when selected items not on page [SCI-7460]
This commit is contained in:
artoscinote 2022-11-21 12:59:24 +01:00 committed by GitHub
commit 974e4d0bf9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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')) {