#3119 closed defect (bug) (fixed)
Trac: Mobile menu link is not working
| Reported by: | mitraval192 | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | high | Milestone: | |
| Component: | Trac | Keywords: | |
| Cc: |
Description
In the mobile device, the menu click event is not working, I investigate this issue and found below error.
Error is
Uncaught ReferenceError: toggleMenu is not defined at HTMLAnchorElement.onclick
Attachments (2)
Change History (6)
#2
@
9 years ago
- Component General → Trac
Confirmed. The mobile menu works on wordpress.org and make.wordpress.org, but not on Trac instances, because the toggleMenu() function is missing there.
Adding it to trac.wordpress.org/templates/wporg-head.html should resolve the issue:
<script type="text/javascript">
var toggleMenu = function(){
var m = document.getElementById('wporg-header-menu'),
c = m.className;
m.className = c.match( ' active' ) ? c.replace( ' active', '' ) : c + ' active';
}
</script>
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Menu Click event not working