Difference between revisions of "Template:Example2"

Line 38: Line 38:
 
$("#"+  wgPageName.substring(wgPageName.indexOf("/")+1, wgPageName.length ) + "_page").addClass("current_page");
 
$("#"+  wgPageName.substring(wgPageName.indexOf("/")+1, wgPageName.length ) + "_page").addClass("current_page");
  
$('.submenu_wrapper').fadeIn(400);
+
if($('.submenu_wrapper').find('current_page').length != 0) {
 +
$(this).fadeIn(400);
 +
}
 
 
 
}
 
}

Revision as of 22:49, 8 March 2017