Difference between revisions of "Template:Team:TU Darmstadt/MainMenu"

Line 136: Line 136:
 
$(function(){
 
$(function(){
 
   $('#slick-menu a').each(function() {
 
   $('#slick-menu a').each(function() {
     if ($(this).prop('href') == window.location.href) {
+
     if ( (window.location.href).indexOf($(this).prop('href')) > -1) {
 
       $(this).addClass('current');
 
       $(this).addClass('current');
 
     }
 
     }

Revision as of 09:32, 14 October 2016