mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-10 06:37:32 +08:00
Fix task repository row selector [SCI-1940]
This commit is contained in:
parent
ebd354e4d5
commit
74a62c41eb
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
|
// Handle click on table cells with checkboxes
|
||||||
$(TABLE_ID).on('click', 'tbody td', function(e) {
|
$(TABLE_ID).on('click', 'tbody td', function(e) {
|
||||||
if ($(e.target).is('.repository-row-selector')) {
|
if ($(e.target).is('.repository-row-selector')) {
|
||||||
|
@ -210,6 +206,10 @@ var RepositoryDatatable = (function(global) {
|
||||||
// Timeout for table header scrolling
|
// Timeout for table header scrolling
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
TABLE.columns.adjust();
|
TABLE.columns.adjust();
|
||||||
|
|
||||||
|
// Append button to inner toolbar in table
|
||||||
|
$('div.toolbarButtons').appendTo('div.toolbar');
|
||||||
|
$('div.toolbarButtons').show();
|
||||||
}, 10);
|
}, 10);
|
||||||
|
|
||||||
return TABLE;
|
return TABLE;
|
||||||
|
@ -725,7 +725,8 @@ var RepositoryDatatable = (function(global) {
|
||||||
$('#unassignRepositoryRecords').addClass('disabled');
|
$('#unassignRepositoryRecords').addClass('disabled');
|
||||||
$('#unassignRepositoryRecords').prop('disabled', true);
|
$('#unassignRepositoryRecords').prop('disabled', true);
|
||||||
} else {
|
} else {
|
||||||
if (rowsSelected.length === 1) {
|
if (rowsSelected.length === 1 &&
|
||||||
|
$('#exportRepositoriesButton').get(0)) {
|
||||||
$('#editRepositoryRecord').prop('disabled', false);
|
$('#editRepositoryRecord').prop('disabled', false);
|
||||||
$('#editRepositoryRecord').removeClass('disabled');
|
$('#editRepositoryRecord').removeClass('disabled');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue