diff options
author | Roman Gräf <roman.graef@gmail.com> | 2017-11-01 13:40:47 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-01 13:40:47 +0100 |
commit | f892ed4301e1a7e51bd0c244e4b472adec253965 (patch) | |
tree | 5931c1e6f1e7fe1c71ed2a39c28b24a0dee98723 /res/default.js | |
parent | 2c0acb0b6e3b7dd7b5cde7188ee61d81bad9eabd (diff) | |
download | ichtml-f892ed4301e1a7e51bd0c244e4b472adec253965.tar.gz ichtml-f892ed4301e1a7e51bd0c244e4b472adec253965.tar.bz2 ichtml-f892ed4301e1a7e51bd0c244e4b472adec253965.zip |
Update default.js
Diffstat (limited to 'res/default.js')
-rw-r--r-- | res/default.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/res/default.js b/res/default.js index 42ad358..5fd0956 100644 --- a/res/default.js +++ b/res/default.js @@ -22,9 +22,9 @@ function load(file, title) { var contentid = 0;
var contents = [];
-function open_timetable() {
+function load_content(id){
sidebar_close();
- load('timetable.html', 'Stundenplan');
+ load(contents[id].url, contents[id].name);
}
function onload() {
@@ -44,7 +44,7 @@ function onload() { if(load=="content"){
contents[contentid] = item;
atag.href = "#";
- atag.onclick = "load("+contentid+")";
+ atag.onclick = "load_content("+contentid+")";
contentid++;
}
var texttag = document.createTextNode(name);
|