summaryrefslogtreecommitdiffstats
path: root/public/media/js/script.js
blob: 7b6c2cd13f706d811f9600adb529f9cf436072c4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
$(document).ready(function(){
	path = window.location.pathname.split('/');
	mypath= '/'+path[1]+'/'+path[2];
	$('.portletNavigationTree a').each(function(){
		if($(this).attr('href') == mypath){
			/*console.log($(this).parent());*/
			$(this).addClass('navTreeCurrentNode');
			$(this).addClass('navTreeCurrentItem');
		}
	});
});