From 5d6d08f1480ac389e3d91ee54899420b174c06e5 Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 2 Jun 2006 06:57:13 +0000 Subject: [PATCH] Added force height git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@3622 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_MultiSelectWindow.inc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/include/class_MultiSelectWindow.inc b/include/class_MultiSelectWindow.inc index 89dd459c8..f201660a6 100644 --- a/include/class_MultiSelectWindow.inc +++ b/include/class_MultiSelectWindow.inc @@ -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); } -- 2.30.2