Code

Made mail plugin w3c conform
[gosa.git] / html / include / focus.js
index c5bf374908ca183a24ddfd827931d6cc419cba58..cc6bc15dff4cce53bcce59d4d18b70d27c7ff411 100644 (file)
@@ -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="";
@@ -214,6 +214,20 @@ function divtoggle(element) {
                                cell.style.height=document.defaultView.getComputedStyle(document.poppedLayer,"").getPropertyValue('height');
                        }
                }
+       } else if (browserType == "ie") {
+    document.poppedLayer = document.getElementById(element);
+               cell= document.getElementById(cellname);
+         if (document.poppedLayer.style.visibility == "visible") {
+                 hide (element);
+                       cell.style.height="0px";
+                       document.poppedLayer.style.height="0px";
+                       document.poppedLayer.style.position="absolute";
+               } else {
+                 show (element);
+                       cell.style.height="";
+                       document.poppedLayer.style.height="";
+                       document.poppedLayer.style.position="relative";
+               }
        }
 }