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) {
var parentElement = e.parentElement
var detailsElement = parentElement.querySelector(".details");
if (detailsElement.style.display === "none") {
detailsElement.style.display = "flex";
} else {
console.log(detailsElement.style.display)
if (detailsElement.style.display === "flex") {
detailsElement.style.display = "none";
} else {
detailsElement.style.display = "flex";
}
return false;
}