Difference between revisions of "Team:Cambridge-JIC/Templates/Menu"

Line 125: Line 125:
 
if(~window.location.href.indexOf(hr)){
 
if(~window.location.href.indexOf(hr)){
  
if($(this).parent().parent().prop('className')=="nav") {
+
if(~$(this).parent().parent().prop('className').indexOf("nav")) {
 
$(this).parent().attr("class", "nh");
 
$(this).parent().attr("class", "nh");
 
}
 
}

Revision as of 00:37, 4 August 2015