From 8d533001481dc5649776ffe330b10e87d91cd428 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 28 Feb 2006 09:22:32 +0000 Subject: [PATCH] Set DNS hidden if acount is disabled git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2761 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/include/focus.js | 9 +++++++++ plugins/admin/systems/network.tpl | 13 ++++++++++++- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/html/include/focus.js b/html/include/focus.js index 0924e26b7..1f226af15 100644 --- a/html/include/focus.js +++ b/html/include/focus.js @@ -14,6 +14,7 @@ for (iln = 0; iln < len; iln++){ } netscape= (ver.charAt(iln+1).toUpperCase() != "C"); + function keyPress(DnEvents) { // determines whether Netscape or Internet Explorer k = (netscape) ? DnEvents.keyCode : window.event.keyCode; @@ -90,6 +91,14 @@ function changeState(myField) { document.getElementById(myField).disabled=(document.getElementById(myField).disabled)?false:true; } +function setHidden(str) { + type = document.getElementById(str).style.display; + if((type=='')||(type=='block')) { + document.getElementById(str).style.display='none'; + }else{ + document.getElementById(str).style.display='block'; + } +} function changeSelectState(triggerField, myField) { if (document.getElementById(triggerField).value != 2){ document.getElementById(myField).disabled= true; diff --git a/plugins/admin/systems/network.tpl b/plugins/admin/systems/network.tpl index eb472e1f1..7c67cbaa6 100644 --- a/plugins/admin/systems/network.tpl +++ b/plugins/admin/systems/network.tpl @@ -19,6 +19,7 @@ {t}Enable DNS for this device.{/t} - + +
@@ -48,10 +50,19 @@
+ {if $DNSAccount != true} + + {/if} {/if} + + -- 2.30.2