From: janw Date: Fri, 28 Jul 2006 14:02:07 +0000 (+0000) Subject: Added dynamic acl divs for extended settings. Currently only firefox is supported. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c0c4b11692099fca4961ab895edbd369140b04b7;p=gosa.git Added dynamic acl divs for extended settings. Currently only firefox is supported. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4341 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/include/focus.js b/html/include/focus.js index 2ee14d6b6..c5bf37490 100644 --- a/html/include/focus.js +++ b/html/include/focus.js @@ -195,6 +195,28 @@ function js_check(form) { form.javascript.value = 'true'; } +function divtoggle(element) { + var cell; + var cellname="tr_"+(element); + + if (browserType == "gecko" ) { + document.poppedLayer = document.getElementById(element); + cell= document.getElementById(cellname); + + if (document.poppedLayer.style.visibility == "visible") { + hide (element); + document.poppedLayer.style.height="0px"; + cell.style.height="1px"; + } else { + show (element); + document.poppedLayer.style.height=""; + if(document.defaultView) { + cell.style.height=document.defaultView.getComputedStyle(document.poppedLayer,"").getPropertyValue('height'); + } + } + } +} + window.onload = adjust; window.onresize = adjust; diff --git a/include/class_acl.inc b/include/class_acl.inc index 398ecd0e1..f3fed5371 100644 --- a/include/class_acl.inc +++ b/include/class_acl.inc @@ -487,7 +487,15 @@ class acl extends plugin $currentAcl= $this->aclContents[$key]; /* Object header */ - $display.= ""; + if($_SESSION['js']) { + if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/firefox/i",$_SERVER['HTTP_USER_AGENT'])) { + $display.= "
"._("Object").": $name
"; + } else { + $display.= "
"._("Object").": $name
"; + } + } else { + $display.= "
"._("Object").": $name
"; + } /* Generate options */ $spc= "  "; @@ -516,6 +524,11 @@ class acl extends plugin $cnt= 1; $splist= $plist[preg_replace('%^.*/%', '', $key)]['plProvidedAcls']; asort($splist); + if($_SESSION['js']) { + if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/firefox/i",$_SERVER['HTTP_USER_AGENT'])) { + $display.= "
"._("Object").": $name
"; + } + } + + $display.= "
"; } return ($display); diff --git a/plugins/admin/fai/branch_selector.tpl b/plugins/admin/fai/branch_selector.tpl index d76abb358..642c9420e 100644 --- a/plugins/admin/fai/branch_selector.tpl +++ b/plugins/admin/fai/branch_selector.tpl @@ -16,16 +16,16 @@
- +   {t}Create new branch{/t}
- +   {t}Create new locked branch{/t} {if $selectedBranch != "main"}
- +   {t}Delete current release{/t} {/if}