Fix opening of details

This commit is contained in:
sqozz 2021-03-25 01:04:11 +01:00
parent 7cd3a49f6d
commit 1fb05934f7

View file

@ -1,10 +1,11 @@
function toggleDetails(e) { function toggleDetails(e) {
var parentElement = e.parentElement var parentElement = e.parentElement
var detailsElement = parentElement.querySelector(".details"); var detailsElement = parentElement.querySelector(".details");
if (detailsElement.style.display === "none") { console.log(detailsElement.style.display)
detailsElement.style.display = "flex"; if (detailsElement.style.display === "flex") {
} else {
detailsElement.style.display = "none"; detailsElement.style.display = "none";
} else {
detailsElement.style.display = "flex";
} }
return false; return false;
} }