From 4f1b325cd9a39a24e556652fda0f44ef7159c579 Mon Sep 17 00:00:00 2001 From: janw Date: Fri, 27 May 2005 12:31:15 +0000 Subject: [PATCH] Added function changeTripleSelectState. 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 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/html/include/focus.js b/html/include/focus.js index 5dd139265..978939c84 100644 --- a/html/include/focus.js +++ b/html/include/focus.js @@ -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); -- 2.30.2