mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
updated padding of table & toolbar
This commit is contained in:
parent
cf6a901b67
commit
31807eb4ab
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,7 @@
|
|||
function updateButtons() {
|
||||
if (window.actionToolbarComponent) {
|
||||
window.actionToolbarComponent.fetchActions({ report_ids: CHECKBOX_SELECTOR.selectedRows });
|
||||
$('.dataTables_scrollBody').css('padding-bottom', `${CHECKBOX_SELECTOR.selectedRows.length > 0 ? 68 : 0}px`);
|
||||
}
|
||||
|
||||
const rowsCount = CHECKBOX_SELECTOR.selectedRows.length;
|
||||
|
@ -210,6 +211,7 @@
|
|||
createdRow: addAttributesToRow,
|
||||
initComplete: function(settings) {
|
||||
initActionToolbar();
|
||||
actionToolbarComponent.setBottomOffset(75);
|
||||
|
||||
const { nTableWrapper: dataTableWrapper } = settings;
|
||||
CHECKBOX_SELECTOR = new DataTableCheckboxes(dataTableWrapper, {
|
||||
|
|
Loading…
Reference in a new issue