From 0e9c2eb8c66b07def889927a24fb8b832d2c62f0 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 3 Sep 2007 07:39:45 +0000 Subject: [PATCH] Added option to divlist. Divlist was over-sized in plugins when height was given git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7194 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_divlist.inc | 10 ++++++++-- plugins/admin/systems/class_servRepository.inc | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/include/class_divlist.inc b/include/class_divlist.inc index 17176b217..25517de97 100644 --- a/include/class_divlist.inc +++ b/include/class_divlist.inc @@ -18,7 +18,8 @@ class divlist { var $force_height = false; var $list_footer = ""; - + var $fix_list_for_plugins = FALSE; + // Added php 4 constructor function divlist($pageid){ @@ -38,6 +39,11 @@ class divlist { } + function SetPluginMode($val = TRUE) + { + $this->fix_list_for_plugins = $val; + } + function SetFooter($str) { $this->list_footer = $str; @@ -73,7 +79,7 @@ class divlist { function DrawList(){ $s_return = ""; - if(!$this->force_height){ + if(!$this->force_height || $this->fix_list_for_plugins){ $s_return.= ""; diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc index 8b9329b12..c46d64d28 100644 --- a/plugins/admin/systems/class_servRepository.inc +++ b/plugins/admin/systems/class_servRepository.inc @@ -276,6 +276,7 @@ class servrepository extends plugin $divlist = new divList("repositories"); $divlist->SetEntriesPerPage(0); $divlist->setHeight(400); + $divlist->SetPluginMode(); $divlist->setHeader(array(array("string"=>_("Release"),"attach"=>"style='width:80px;'"), array("string"=>_("Sections")), -- 2.30.2