summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Brill <egore911@gmail.com>2014-10-16 19:34:38 +0200
committerChristoph Brill <egore911@gmail.com>2014-10-16 19:34:38 +0200
commit6d2bc51274cf7109e5ba010cd3f9ff480b99f0d8 (patch)
treeebe0f3e63cd13313bba0d627a4fb87a603235cea
parent38339807faf68b200f51e4fa208e45c794e540ec (diff)
Fix javascript error in overview page
-rwxr-xr-xindex.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/index.php b/index.php
index 9fd4bab..ac5b3c9 100755
--- a/index.php
+++ b/index.php
@@ -228,8 +228,12 @@ function drag(ereignis) {
}
}
-echo ' </head>
- <body onload="draginit()">'.PHP_EOL;
+echo ' </head>'.PHP_EOL;
+if (isset($date)) {
+ echo ' <body onload="draginit()">'.PHP_EOL;
+} else {
+ echo ' <body>'.PHP_EOL;
+}
function get_month($filename) {
return substr($filename, 10, 7);