mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Disable instead of hide edit button when selected items not on page [SCI-7460]
This commit is contained in:
parent
d9897d6e7c
commit
5d41ea5fa7
1 changed files with 2 additions and 2 deletions
|
@ -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')) {
|
||||
|
|
Loading…
Reference in a new issue