mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-17 22:42:22 +08:00
Merge pull request #2529 from aignatov-bio/ai-sci-4584-fix-handsone-table
Fix Handson table for collapsed protocol section [SCI-4584]
This commit is contained in:
commit
f3046c8515
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…
Add table
Reference in a new issue