From: janw Date: Fri, 27 May 2005 12:31:15 +0000 (+0000) Subject: Added function changeTripleSelectState. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4f1b325cd9a39a24e556652fda0f44ef7159c579;p=gosa.git 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 --- 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);