Code

Added function changeTripleSelectState.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 May 2005 12:31:15 +0000 (12:31 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 27 May 2005 12:31:15 +0000 (12:31 +0000)
Use it for lists that are childs of two selectboxes

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@479 594d385d-05f5-0310-b6e9-bd551577e9d8

html/include/focus.js

index 5dd1392656976bbe0d1c20284c147b930cdd7893..978939c84821d76c5864da41f57db266ec06e209 100644 (file)
@@ -47,6 +47,16 @@ function changeSubselectState(triggerField, myField) {
   }
 }
 
+function changeTripleSelectState(firstTriggerField, secondTriggerField, myField) {
+  if (
+       document.getElementById(firstTriggerField).checked == true &&
+       document.getElementById(secondTriggerField).checked == true){
+         document.getElementById(myField).disabled= false;
+  } else {
+         document.getElementById(myField).disabled= true;
+  }
+}
+
 document.onkeydown= keyDown; // work together to analyze keystrokes
 if (netscape){
   document.captureEvents(Event.KEYDOWN|Event.KEYUP);