mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-02 13:12:13 +08:00
Merge pull request #942 from okriuchykhin/ok_SCI_1940
Fix task repository row selector [SCI-1940]
This commit is contained in:
commit
2c2914f691
1 changed files with 6 additions and 5 deletions
|
@ -186,10 +186,6 @@ var RepositoryDatatable = (function(global) {
|
|||
}
|
||||
});
|
||||
|
||||
// Append button to inner toolbar in table
|
||||
$('div.toolbarButtons').appendTo('div.toolbar');
|
||||
$('div.toolbarButtons').show();
|
||||
|
||||
// Handle click on table cells with checkboxes
|
||||
$(TABLE_ID).on('click', 'tbody td', function(e) {
|
||||
if ($(e.target).is('.repository-row-selector')) {
|
||||
|
@ -210,6 +206,10 @@ var RepositoryDatatable = (function(global) {
|
|||
// Timeout for table header scrolling
|
||||
setTimeout(function() {
|
||||
TABLE.columns.adjust();
|
||||
|
||||
// Append button to inner toolbar in table
|
||||
$('div.toolbarButtons').appendTo('div.toolbar');
|
||||
$('div.toolbarButtons').show();
|
||||
}, 10);
|
||||
|
||||
return TABLE;
|
||||
|
@ -725,7 +725,8 @@ var RepositoryDatatable = (function(global) {
|
|||
$('#unassignRepositoryRecords').addClass('disabled');
|
||||
$('#unassignRepositoryRecords').prop('disabled', true);
|
||||
} else {
|
||||
if (rowsSelected.length === 1) {
|
||||
if (rowsSelected.length === 1 &&
|
||||
$('#exportRepositoriesButton').get(0)) {
|
||||
$('#editRepositoryRecord').prop('disabled', false);
|
||||
$('#editRepositoryRecord').removeClass('disabled');
|
||||
|
||||
|
|
Loading…
Reference in a new issue