summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorBjörn Geiger2011-10-10 11:58:07 +0200
committerBjörn Geiger2011-10-10 11:58:07 +0200
commit4e026af7154eea729b809fbc9d68f28e6ed50f23 (patch)
tree01e6a220e7df1e43da8436c25137df9a9e10ac2c /public
parentkollisionskontrolle (diff)
downloadpoolctrl-4e026af7154eea729b809fbc9d68f28e6ed50f23.tar.gz
poolctrl-4e026af7154eea729b809fbc9d68f28e6ed50f23.tar.xz
poolctrl-4e026af7154eea729b809fbc9d68f28e6ed50f23.zip
kleine Änderung
Diffstat (limited to 'public')
-rwxr-xr-xpublic/media/js/script.js14
1 files changed, 4 insertions, 10 deletions
diff --git a/public/media/js/script.js b/public/media/js/script.js
index 74a82ce..8ad91cb 100755
--- a/public/media/js/script.js
+++ b/public/media/js/script.js
@@ -43,17 +43,11 @@ $(document)
mypath = '/' + path[1] + '/' + path[2] + '/owndetails';
} else if (path[1] == 'event') {
mypath = '/event';
- } else if (path[1] == 'statistics') {
- if(path[2] == 'category') {
- mypath = '/statistics/category';
- } else if(path[2] == 'running') {
- mypath = '/statistics/running';
- } else if(path[2] == 'success') {
- mypath = '/statistics/success';
- } else if(path[2] == 'type') {
- mypath = '/statistics/type';
- } else {
+ } else if (path[1] == 'statistics') {
+ if (!path[2]) {
mypath = '/statistics';
+ } else {
+ mypath = '/statistics/' + path[2];
}
setElementVisible('statisticsTree');
} else {