mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-08 07:21:03 +08:00
Fix loading of protocols [SCI-10435] (#7283)
This commit is contained in:
parent
2be31ca9f9
commit
9d81a3ccf8
1 changed files with 12 additions and 8 deletions
|
|
@ -326,6 +326,17 @@ function initAccessModal() {
|
|||
});
|
||||
});
|
||||
}
|
||||
|
||||
function wrapTables() {
|
||||
const viewMode = new URLSearchParams(window.location.search).get('view_mode');
|
||||
if (['archived', 'locked', 'active'].includes(viewMode)) {
|
||||
setTimeout(() => {
|
||||
const notesContainerEl = document.getElementById('notes-container');
|
||||
window.wrapTables(notesContainerEl);
|
||||
}, 100);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Initializes page
|
||||
*/
|
||||
|
|
@ -337,14 +348,7 @@ function init() {
|
|||
initProtocolSectionOpenEvent();
|
||||
initDetailsDropdown();
|
||||
initAccessModal();
|
||||
wrapTables();
|
||||
}
|
||||
|
||||
init();
|
||||
|
||||
const viewMode = new URLSearchParams(window.location.search).get('view_mode');
|
||||
if (['archived', 'locked', 'active'].includes(viewMode)) {
|
||||
setTimeout(() => {
|
||||
const notesContainerEl = document.getElementById('notes-container');
|
||||
window.wrapTables(notesContainerEl);
|
||||
}, 100);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue