summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rw-r--r--public/media/js/script.js21
1 files changed, 18 insertions, 3 deletions
diff --git a/public/media/js/script.js b/public/media/js/script.js
index aac221d..324255d 100644
--- a/public/media/js/script.js
+++ b/public/media/js/script.js
@@ -99,17 +99,32 @@ function eventcategoryfieldChanged(name) {
if (label == 'Boot' || label == 'Shutdown') {
endLabel.style.display = "none";
endElement.style.display = "none";
- startLabel.firstChild.firstChild.nodeValue = startLabel.firstChild.firstChild.nodeValue.replace(/Start/g, "Date");
+ startLabel.firstChild.firstChild.nodeValue = startLabel.firstChild.firstChild.nodeValue
+ .replace(/Start/g, "Date");
repeat.checked = false;
} else if (label == 'Lecture') {
endLabel.style.display = "";
endElement.style.display = "";
- startLabel.firstChild.firstChild.nodeValue = startLabel.firstChild.firstChild.nodeValue.replace(/Date/g, "Start");
+ startLabel.firstChild.firstChild.nodeValue = startLabel.firstChild.firstChild.nodeValue
+ .replace(/Date/g, "Start");
repeat.checked = true;
} else {
endLabel.style.display = "";
endElement.style.display = "";
- startLabel.firstChild.firstChild.nodeValue = startLabel.firstChild.firstChild.nodeValue.replace(/Date/g, "Start");
+ startLabel.firstChild.firstChild.nodeValue = startLabel.firstChild.firstChild.nodeValue
+ .replace(/Date/g, "Start");
repeat.checked = false;
}
+}
+
+function changeRepeatEnd(name) {
+ checkbox = document.getElementById(name);
+ checked = checkbox.checked;
+ if (checked) {
+ setVisible("repeatEnd-label");
+ setVisible("repeatEnd-element");
+ } else {
+ setInvisible("repeatEnd-label");
+ setInvisible("repeatEnd-element");
+ }
} \ No newline at end of file