summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
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 {