From d8442b26f8404d5e7f1c156de167432c74a4ef46 Mon Sep 17 00:00:00 2001 From: Björn Geiger Date: Sat, 25 Jun 2011 17:25:07 +0200 Subject: media ordner vom pbs2 hinzugefügt --- public/media/js/script.js | 17 +++++++++++++++++ 1 file changed, 17 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..ce87812 --- /dev/null +++ b/public/media/js/script.js @@ -0,0 +1,17 @@ +$(document).ready(function() { + path = window.location.pathname.split('/'); + if (path[2] == 'person' && (path[3] == 'owndetails' || path[3] == 'edit' || path[3] == 'request') && path[4] != 'personID') { + mypath = '/' + path[1] + '/' + path[2] + '/owndetails'; + } else if(path[2] == 'group' && (path[3] == 'show' || path[3] == 'edit') && path[4] != 'groupID') { + mypath = '/' + path[1] + '/' + path[2] + '/show'; + } 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