From ce63b74f526ee8f2258bda19e7ed1bdf7e0c2732 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 3 Sep 2007 07:41:51 +0000 Subject: [PATCH] Updated list handling for plugins git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7195 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/class_divlist.inc | 8 +++++++- plugins/admin/systems/class_servRepository.inc | 1 + 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/include/class_divlist.inc b/include/class_divlist.inc index 17176b217..e39b00f06 100644 --- a/include/class_divlist.inc +++ b/include/class_divlist.inc @@ -18,6 +18,7 @@ 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; @@ -184,7 +190,7 @@ class divlist { if($this->i_entriesPerPage == 0) { // We need to construct a "body"-table that is width-of-scrollbar thinner than the "head"-table. - if(!$this->force_height) { + if(!$this->force_height || $this->fix_list_for_plugins) { $s_return .= "\n
"; $s_return .= ""; } else { diff --git a/plugins/admin/systems/class_servRepository.inc b/plugins/admin/systems/class_servRepository.inc index e188062e5..7ea32fe9d 100644 --- a/plugins/admin/systems/class_servRepository.inc +++ b/plugins/admin/systems/class_servRepository.inc @@ -254,6 +254,7 @@ class servrepository extends goService $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