Fix opening of details

This commit is contained in:
sqozz 2021-03-25 01:04:11 +01:00
parent 7cd3a49f6d
commit 1fb05934f7
1 changed files with 4 additions and 3 deletions

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;
}