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