Commit 981fea890f838a7ee524af89119c026dd4284d62
- Diff rendering mode:
- inline
- side by side
mouchak/static/js/mouchak.js
(2 / 2)
  | |||
68 | 68 | if(!fragment) { | |
69 | 69 | pos = 0; | |
70 | 70 | } | |
71 | $(this.$links[pos]).addClass('active'); | ||
71 | //$(this.$links[pos]).addClass('active'); | ||
72 | 72 | ||
73 | 73 | //$(this.$links[pos]).find('a p.navicon').addClass('active'); | |
74 | 74 | }, | |
… | … | ||
129 | 129 | // find out where it is in the nav menu | |
130 | 130 | var link = $('.nav').find('a[href="#/'+ fragment +'"]')[0]; | |
131 | 131 | // find its <li> parent all the way up in the main ul.nav | |
132 | $(link).closest('ul.nav > li').addClass('active'); | ||
132 | $(link).closest('ul.navbar-right > li').addClass('active'); | ||
133 | 133 | // custom nav for maraa | |
134 | 134 | $(link).find('p.navicon').addClass('active'); | |
135 | 135 | } |