From f1a6887fb5d622f5d93b8f7748a2c7fc3282c1e5 Mon Sep 17 00:00:00 2001 From: janw Date: Fri, 27 May 2005 12:09:05 +0000 Subject: [PATCH] Added function changeSubselectState. Use it to dim form elements that are childs of selectboxes. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@478 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/include/focus.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/html/include/focus.js b/html/include/focus.js index 48f7e738e..5dd139265 100644 --- a/html/include/focus.js +++ b/html/include/focus.js @@ -39,6 +39,14 @@ function changeSelectState(triggerField, myField) { } } +function changeSubselectState(triggerField, myField) { + if (document.getElementById(triggerField).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