Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Shift addition of menuselectify class to master-dashboard.jade #34

Closed
sohailrajdev97 opened this issue Mar 16, 2018 · 1 comment
Closed

Comments

@sohailrajdev97
Copy link
Member

We are using the following code in every jade file for portals to highlight the current portal in navigation sidebar.

document.getElementsByClassName('mdl-navigation__link menuselectify')[0].classList.remove('menuselectify');
document.getElementById('XXXXX').classList.add('menuselectify');

Shift this code to the master template master-dashboard.jade so that the currently opened portal is automatically highlighted in the sidebar without explicitly programming it in every jade file.

Also, after the code has been shifted, remove all it's occurrences from all jade files.

@sohailrajdev97
Copy link
Member Author

Resolved by #40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants