#3119 closed defect (bug) (fixed)
Trac: Mobile menu link is not working
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | high | |
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
@
8 years ago
- Component changed from General to 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.
Menu Click event not working