From 1327395f0829af9866b1994f51b0028a432bfd77 Mon Sep 17 00:00:00 2001 From: Simon Date: Sat, 26 Mar 2011 21:34:42 +0100 Subject: anpassung navigationslayout --- public/media/js/script.js | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 public/media/js/script.js (limited to 'public/media/js/script.js') diff --git a/public/media/js/script.js b/public/media/js/script.js new file mode 100644 index 0000000..7b6c2cd --- /dev/null +++ b/public/media/js/script.js @@ -0,0 +1,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'); + } + }); +}); -- cgit v1.2.3-55-g7522