Commit e9c72cf0 authored by Isabella Skořepová's avatar Isabella Skořepová
Browse files

IE compat

parent c3dc2dcf
Pipeline #1036 passed with stage
in 2 minutes and 12 seconds
......@@ -168,7 +168,7 @@ export function BaseBody({
$("body").removeClass("show-subnav2").removeClass("show-subnav1");
}
});
for(var a of document.querySelectorAll("[data-activates]")) {
[].forEach.call(document.querySelectorAll("[data-activates]"), function () {
a.addEventListener("click", function(evt) {
evt.preventDefault()
var target = document.getElementById(a.dataset.activates)
......@@ -192,7 +192,7 @@ export function BaseBody({
target.style.pointerEvents = oldPointerEvents
})
})
}
})
});
`,
}}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment