Fix opening of details
This commit is contained in:
parent
7cd3a49f6d
commit
1fb05934f7
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue