mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 13:13:22 +08:00
Fix Datatable header adjustments on repositories index
This commit is contained in:
parent
79ef4ece28
commit
d16a2ed9c9
3 changed files with 10 additions and 3 deletions
|
@ -306,7 +306,7 @@ var MyModuleRepositories = (function() {
|
||||||
renderSimpleTable(repositoryTemplate);
|
renderSimpleTable(repositoryTemplate);
|
||||||
});
|
});
|
||||||
|
|
||||||
$('.navbar-secondary').on('sideBar::shown sideBar::hidden', function() {
|
$('#wrapper').on('sideBar::shown sideBar::hidden', function() {
|
||||||
if (SIMPLE_TABLE) {
|
if (SIMPLE_TABLE) {
|
||||||
SIMPLE_TABLE.columns.adjust();
|
SIMPLE_TABLE.columns.adjust();
|
||||||
}
|
}
|
||||||
|
|
|
@ -156,6 +156,13 @@
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
$('#wrapper').on('sideBar::hidden sideBar::shown', function() {
|
||||||
|
if (REPOSITORIES_TABLE) {
|
||||||
|
REPOSITORIES_TABLE.columns.adjust();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
$('.create-new-repository').initializeModal('#create-repo-modal');
|
$('.create-new-repository').initializeModal('#create-repo-modal');
|
||||||
initRepositoriesDataTable('#repositoriesList', $('.repositories-index').hasClass('archived'));
|
initRepositoriesDataTable('#repositoriesList', $('.repositories-index').hasClass('archived'));
|
||||||
initRepositoryViewSwitcher();
|
initRepositoryViewSwitcher();
|
||||||
|
|
|
@ -35,8 +35,8 @@
|
||||||
sideBarEvent = 'sideBar::shown'
|
sideBarEvent = 'sideBar::shown'
|
||||||
}
|
}
|
||||||
|
|
||||||
$('.navbar-secondary').one("transitionend",function(event) {
|
$('#wrapper').one("transitionend", function() {
|
||||||
$('.navbar-secondary').trigger(sideBarEvent);
|
$('#wrapper').trigger(sideBarEvent);
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue