mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-29 19:51:01 +08:00
Resize simple table header on sidebar collapse
This commit is contained in:
parent
384ec40c4e
commit
f86b71144d
2 changed files with 13 additions and 0 deletions
|
@ -290,6 +290,12 @@ var MyModuleRepositories = (function() {
|
|||
repositoryContainer.html(repositoryTemplate);
|
||||
renderSimpleTable(repositoryTemplate);
|
||||
});
|
||||
|
||||
$('.navbar-secondary').on('sideBar::shown sideBar::hidden', function() {
|
||||
if (SIMPLE_TABLE) {
|
||||
SIMPLE_TABLE.columns.adjust();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function initVersionsStatusCheck() {
|
||||
|
|
|
@ -26,11 +26,18 @@
|
|||
|
||||
function toggle() {
|
||||
var btn = $('#sidebar-arrow');
|
||||
var sideBarEvent;
|
||||
if (btn.is('[data-shown]')) {
|
||||
hide();
|
||||
sideBarEvent = 'sideBar::hidden'
|
||||
} else {
|
||||
show();
|
||||
sideBarEvent = 'sideBar::shown'
|
||||
}
|
||||
|
||||
$('.navbar-secondary').one("transitionend",function(event) {
|
||||
$('.navbar-secondary').trigger(sideBarEvent);
|
||||
})
|
||||
}
|
||||
|
||||
function isShown() {
|
||||
|
|
Loading…
Reference in a new issue