mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-10 17:36:33 +08:00
Merge pull request #2606 from aignatov-bio/ai-sci-4621-resize-simple-table-header-size-on-sidebar-colapse
Resize simple table header on sidebar collapse [SCI-4621]
This commit is contained in:
commit
7b36392a19
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