mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-25 09:13:05 +08:00
Merge pull request #5457 from G-Chubinidze/gc_SCI_8302
Reports bottom action toolbar position update [SCI-8302]
This commit is contained in:
commit
2bbeef0775
1 changed files with 2 additions and 0 deletions
|
@ -102,6 +102,7 @@
|
||||||
function updateButtons() {
|
function updateButtons() {
|
||||||
if (window.actionToolbarComponent) {
|
if (window.actionToolbarComponent) {
|
||||||
window.actionToolbarComponent.fetchActions({ report_ids: CHECKBOX_SELECTOR.selectedRows });
|
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;
|
const rowsCount = CHECKBOX_SELECTOR.selectedRows.length;
|
||||||
|
@ -210,6 +211,7 @@
|
||||||
createdRow: addAttributesToRow,
|
createdRow: addAttributesToRow,
|
||||||
initComplete: function(settings) {
|
initComplete: function(settings) {
|
||||||
initActionToolbar();
|
initActionToolbar();
|
||||||
|
actionToolbarComponent.setBottomOffset(75);
|
||||||
|
|
||||||
const { nTableWrapper: dataTableWrapper } = settings;
|
const { nTableWrapper: dataTableWrapper } = settings;
|
||||||
CHECKBOX_SELECTOR = new DataTableCheckboxes(dataTableWrapper, {
|
CHECKBOX_SELECTOR = new DataTableCheckboxes(dataTableWrapper, {
|
||||||
|
|
Loading…
Reference in a new issue