Fix opening of details
This commit is contained in:
parent
7cd3a49f6d
commit
1fb05934f7
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue