Code

Added force height
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Jun 2006 06:57:13 +0000 (06:57 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 2 Jun 2006 06:57:13 +0000 (06:57 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3622 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_MultiSelectWindow.inc

index 89dd459c833f3cbe20cf60656c103369b5ce113a..f201660a64c7d8f98059b6bd2bec98d8d9f7760f 100644 (file)
@@ -35,23 +35,30 @@ class MultiSelectWindow{
 
   var $SaveAdditionalVars = array();  // Additional Post vars to store 
 
+  var $force_height       = false;
 
        function ClearElementsList()
        {
                $this->array_Elements = array();
        }
 
-  function ForceMaximumDivHeight($height = "")
+  function HideFilterPart($bool = true)
   {
-    $this->DivHeight = $height;
+    $this->HideFilterPart = $bool;
   }
 
-
-  function HideFilterPart($bool = true)
+  function ForceMaximumDivHeight($height = "")
   {
-    $this->HideFilterPart = $bool;
+    $this->DivHeight    = $height;
+    if(!empty($height)){
+      $this->force_height = true;
+    }else{
+      $this->force_height = false;
+    }
   }
 
+
+
        /* Adds a regex input field to the current dialog */
        function AddRegex($name,$string,$value,$conn,$image="images/search.png")
        {
@@ -349,6 +356,8 @@ class MultiSelectWindow{
                $smarty->assign("filterName"    ,       $this->filterName);
                $smarty->assign("is_headpage"   ,       $this->is_headpage);
 
+    $smarty->assign("force_height",$this->force_height);
+
                $display = $smarty->fetch(get_template_path("MultiSelectWindow.tpl"));
                return($display);
        }