Commit 981fea890f838a7ee524af89119c026dd4284d62

Fix for menu css
  • 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 $(this.$links[pos]).addClass('active');
71 //$(this.$links[pos]).addClass('active');
7272
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 menu129 // 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.nav131 // 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 // custom nav for maraa133 // custom nav for maraa
134 $(link).find('p.navicon').addClass('active');134 $(link).find('p.navicon').addClass('active');
135 }135 }