summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
Diffstat (limited to 'public')
-rwxr-xr-xpublic/media/js/script.js19
1 files changed, 17 insertions, 2 deletions
diff --git a/public/media/js/script.js b/public/media/js/script.js
index 0e299bc..94d8134 100755
--- a/public/media/js/script.js
+++ b/public/media/js/script.js
@@ -105,10 +105,10 @@ function repeatChanged(name) {
} else {
setElementInvisible("repeatdate-label");
setElementInvisible("repeatdate-element");
- disableElement('repeatEnd');
+ disableElement('repeatdate');
setElementInvisible("repeattype-label");
setElementInvisible("repeattype-element");
- disableElement('repeatType');
+ disableElement('repeattype');
setElementInvisible("repeatend-label");
setElementInvisible("repeatend-element");
disableElement('repeatend');
@@ -248,4 +248,19 @@ function repeatendChanged(name) {
setElementInvisible("repeatings-element");
disableElement('repeatings');
}
+}
+
+function bootosfieldChanged(name, bootosCount) {
+ value = getElementValue(name);
+ for (i = 1; i <= bootosCount; i++) {
+ if (value == i) {
+ setElementVisible("pbs_configID_" + i + "-label");
+ setElementVisible("pbs_configID_" + i + "-element");
+ enableElement("pbs_configID_" + i);
+ } else {
+ setElementInvisible("pbs_configID_" + i + "-label");
+ setElementInvisible("pbs_configID_" + i + "-element");
+ disableElement("pbs_configID_" + i);
+ }
+ }
} \ No newline at end of file