mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-24 15:54:00 +08:00
Fix handson table for colapsed protocol section
This commit is contained in:
parent
0e865f8e45
commit
9d006aac9e
1 changed files with 11 additions and 0 deletions
|
@ -472,6 +472,16 @@ function updateRecentProtocolsStatus() {
|
|||
}
|
||||
}
|
||||
|
||||
function initProtocolSectionOpenEvent() {
|
||||
$('#protocol-container').on('shown.bs.collapse', function() {
|
||||
$(this).find("[data-role='hot-table']").each(function() {
|
||||
var $container = $(this).find("[data-role='step-hot-table']");
|
||||
var hot = $container.handsontable('getInstance');
|
||||
hot.render();
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes page
|
||||
*/
|
||||
|
@ -485,6 +495,7 @@ function init() {
|
|||
refreshProtocolStatusBar();
|
||||
initImport();
|
||||
initRecentProtocols();
|
||||
initProtocolSectionOpenEvent();
|
||||
}
|
||||
|
||||
init();
|
||||
|
|
Loading…
Reference in a new issue