Skip to content
This repository has been archived by the owner on Nov 27, 2024. It is now read-only.

Commit

Permalink
Fix dropdown menu not opening
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigocam authored and pablodiegoss committed Nov 15, 2018
1 parent a1fd57e commit faab619
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/ej/templates/jinja2/components/generic/page_header.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@
<script type="text/javascript">
// this function controls the open/close button of "conversations dropdown on page_menu
function openDropDown(openDiv) {
let element = document.getElementsByClassName(openDiv);
if (element[0].style.display === "inline")
element[0].style.display = "none";
let elements = document.getElementsByClassName(openDiv);
let element = elements[1]
if (element.style.display === "inline")
element.style.display = "none";
else
element[0].style.display = "inline";
element.style.display = "inline";
}
</script>

Expand Down

0 comments on commit faab619

Please sign in to comment.