mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 19:51:01 +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);
|
||||
});
|
||||
|
||||
$('.navbar-secondary').on('sideBar::shown sideBar::hidden', function() {
|
||||
$('#wrapper').on('sideBar::shown sideBar::hidden', function() {
|
||||
if (SIMPLE_TABLE) {
|
||||
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');
|
||||
initRepositoriesDataTable('#repositoriesList', $('.repositories-index').hasClass('archived'));
|
||||
initRepositoryViewSwitcher();
|
||||
|
|
|
@ -35,8 +35,8 @@
|
|||
sideBarEvent = 'sideBar::shown'
|
||||
}
|
||||
|
||||
$('.navbar-secondary').one("transitionend",function(event) {
|
||||
$('.navbar-secondary').trigger(sideBarEvent);
|
||||
$('#wrapper').one("transitionend", function() {
|
||||
$('#wrapper').trigger(sideBarEvent);
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue