Code

Updated list handling for plugins
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Sep 2007 07:41:51 +0000 (07:41 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 3 Sep 2007 07:41:51 +0000 (07:41 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7195 594d385d-05f5-0310-b6e9-bd551577e9d8

include/class_divlist.inc
plugins/admin/systems/class_servRepository.inc

index 17176b217b9ce96ffbe8d5f2b743a2a0ecc61291..e39b00f06b0a8f3bdfa238d8bbf1e7ec5ffe2f7f 100644 (file)
@@ -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<tr><td colspan='".$this->cols."' class='scrollbody'><div style='width:".$this->s_width.";height:".($this->s_height-20)."px;' id='d_scrollbody' class='scrollbody'>";
         $s_return .= "<table summary='' style='height:100%;width:581px;' cellspacing='0' id='t_scrollbody'>";
       } else {
index e188062e563843a9d752793256552d1c8bf6122f..7ea32fe9dab41349aab4aa322a20ff90f93d55fc 100644 (file)
@@ -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")),