diff options
author | Christoph Brill <egore911@gmail.com> | 2014-10-16 19:34:38 +0200 |
---|---|---|
committer | Christoph Brill <egore911@gmail.com> | 2014-10-16 19:34:38 +0200 |
commit | 6d2bc51274cf7109e5ba010cd3f9ff480b99f0d8 (patch) | |
tree | ebe0f3e63cd13313bba0d627a4fb87a603235cea | |
parent | 38339807faf68b200f51e4fa208e45c794e540ec (diff) |
Fix javascript error in overview page
-rwxr-xr-x | index.php | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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); |