From: janw Date: Tue, 1 Aug 2006 08:12:36 +0000 (+0000) Subject: ACL toggles now working (tested) with firefox and konqueror. IE uses the old behavior. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=95f433cd099108de087e0965db2fbbafc740bc7a;p=gosa.git ACL toggles now working (tested) with firefox and konqueror. IE uses the old behavior. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4358 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/include/focus.js b/html/include/focus.js index c5bf37490..a41a6ff05 100644 --- a/html/include/focus.js +++ b/html/include/focus.js @@ -205,8 +205,8 @@ function divtoggle(element) { if (document.poppedLayer.style.visibility == "visible") { hide (element); + cell.style.height="0px"; document.poppedLayer.style.height="0px"; - cell.style.height="1px"; } else { show (element); document.poppedLayer.style.height=""; diff --git a/include/class_acl.inc b/include/class_acl.inc index f3fed5371..c2ad1d09e 100644 --- a/include/class_acl.inc +++ b/include/class_acl.inc @@ -487,12 +487,8 @@ class acl extends plugin $currentAcl= $this->aclContents[$key]; /* Object header */ - if($_SESSION['js']) { - if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/firefox/i",$_SERVER['HTTP_USER_AGENT'])) { + if($_SESSION['js'] && (isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/gecko/i",$_SERVER['HTTP_USER_AGENT']))) { $display.= ""; - } else { - $display.= "
"._("Object").": $name
"; - } } else { $display.= "
"._("Object").": $name
"; } @@ -525,8 +521,8 @@ class acl extends plugin $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