summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorBjörn Geiger2011-04-08 10:25:29 +0200
committerBjörn Geiger2011-04-08 10:25:29 +0200
commite30767a8f83df955fec83d2a2e459a5a8f18193f (patch)
treeb6d6e169d2c60c1ee78e278c45d371cc70b888bf /public
parentdefaultbootmenu fertig (diff)
downloadpbs2-e30767a8f83df955fec83d2a2e459a5a8f18193f.tar.gz
pbs2-e30767a8f83df955fec83d2a2e459a5a8f18193f.tar.xz
pbs2-e30767a8f83df955fec83d2a2e459a5a8f18193f.zip
Eigener Menüpunkt für Person- und Grouplist
Diffstat (limited to 'public')
-rw-r--r--public/media/js/script.js14
1 files changed, 9 insertions, 5 deletions
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');
}