Skip to content
Snippets Groups Projects
Commit e218326c authored by Marina Mădăraş's avatar Marina Mădăraş
Browse files

Load scripts in order

parent b7afe532
2 merge requests!229Version 2.2.1,!218Fix dropdown
......@@ -96,7 +96,7 @@
</div>
</th:block>
<script>
document.addEventListener("DOMContentLoaded", function () {
window.onload = function () {
function fetchGroup(group) {
const toReplace =
group.nextElementSibling.querySelector("[data-fetch]");
......@@ -129,7 +129,7 @@
fetchGroup(g);
})
);
});
};
</script>
</div>
</th:block>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment