mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 01:44:34 +08:00
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:
commit
974e4d0bf9
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