summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorBjörn Geiger2011-09-07 13:08:17 +0200
committerBjörn Geiger2011-09-07 13:08:17 +0200
commitb088812fe7cd08b381243e5f56f250c88ee5de43 (patch)
treeda7157823cc0778eeb53443f1d0c6eefa551ec2b /public
parentjquery.ui images hinzugefügt (diff)
downloadpoolctrl-b088812fe7cd08b381243e5f56f250c88ee5de43.tar.gz
poolctrl-b088812fe7cd08b381243e5f56f250c88ee5de43.tar.xz
poolctrl-b088812fe7cd08b381243e5f56f250c88ee5de43.zip
minor
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