From e30767a8f83df955fec83d2a2e459a5a8f18193f Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Fri, 8 Apr 2011 10:25:29 +0200 Subject: Eigener Menüpunkt für Person- und Grouplist --- public/media/js/script.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'public') diff --git a/public/media/js/script.js b/public/media/js/script.js index 7b6c2cd..546e1f6 100644 --- a/public/media/js/script.js +++ b/public/media/js/script.js @@ -1,9 +1,13 @@ -$(document).ready(function(){ +$(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());*/ + if (path[3] == 'showall') { + mypath = '/' + path[1] + '/' + path[2] + '/' + path[3]; + } else { + 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