summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorBjörn Geiger2011-10-06 17:06:04 +0200
committerBjörn Geiger2011-10-06 17:06:04 +0200
commitf5da2e53c499b5f6e82ab2968ec97e8312781e80 (patch)
tree806232743455bf6c1cc12980856b9557d72fecb9 /public
parentminor (diff)
downloadpoolctrl-f5da2e53c499b5f6e82ab2968ec97e8312781e80.tar.gz
poolctrl-f5da2e53c499b5f6e82ab2968ec97e8312781e80.tar.xz
poolctrl-f5da2e53c499b5f6e82ab2968ec97e8312781e80.zip
Layout korrigiert
Diffstat (limited to 'public')
-rwxr-xr-xpublic/media/js/script.js21
1 files changed, 14 insertions, 7 deletions
diff --git a/public/media/js/script.js b/public/media/js/script.js
index 94d8134..ab57acf 100755
--- a/public/media/js/script.js
+++ b/public/media/js/script.js
@@ -37,14 +37,21 @@ $(document)
}
});
path = window.location.pathname.split('/');
- if (path[2] == 'person'
- && (path[3] == 'owndetails' || path[3] == 'edit' || path[3] == 'request')
- && path[4] != 'personID') {
+ if (path[1] == 'person'
+ && (path[2] == 'owndetails' || path[2] == 'edit' || path[2] == 'request')
+ && path[3] != '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 if (path[1] == 'event') {
+ mypath = '/event';
+ } else if (path[1] == 'statistic') {
+ if(path[2] == 'category') {
+ mypath = '/statistic/category';
+ } else if(path[2] == 'running') {
+ mypath = '/statistic/running';
+ } else {
+ mypath = '/statistic';
+ }
+ setElementVisible('statisticsTree');
} else {
mypath = '/' + path[1] + '/' + path[2];
}