Code

Added some changes to fix divlist in goto_task.
authorjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Aug 2007 13:47:13 +0000 (13:47 +0000)
committerjanw <janw@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 21 Aug 2007 13:47:13 +0000 (13:47 +0000)
Need to check if it breaks other divlists.

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7091 594d385d-05f5-0310-b6e9-bd551577e9d8

html/include/focus.js
plugins/addons/gotomasses/class_goto_task.inc
plugins/addons/gotomasses/goto_task.tpl

index f01d1046cb4ff9d8b8bc3c8c482b016c831eb82c..082061988a997e5cf43695c8b4741ca379d6172e 100644 (file)
@@ -382,7 +382,7 @@ function adjust_width(e) {
                var width= parseInt(window.innerWidth);
 
                // Resize the body cells
-               var diff= width-div_width-470;
+               var diff= width-div_width-200;
                
                // window has been upscaled
                if(div_width+diff>=600) {
index 5aae42d5a6c8552415d33794cca4d5b48829ba33..6631e0dab0dc61f74a550ae38d50cfcdbbaee2f8 100644 (file)
@@ -112,13 +112,13 @@ class goto_task extends plugin
      ********/
 
     $divlist = new divlist("goto_task");
-    $divlist->SetWidth("600");
+    //$divlist->SetWidth("600");
     $divlist->SetHeight("160");
     $divlist->SetEntriesPerPage(0);
 
     $divlist->SetHeader(array(
-                            array("string" => "Target"),
-                            array("string" => "Actions" , "attach" => "style='width:44px;border-right:0px;'")));
+                            array("string" => "Target", "attach" => "style=''"),
+                            array("string" => "Actions" , "attach" => "style='width:44px;border-right:0px;text-align:right;'")));
 
     $acl_target = $this->parent->getacl("Target");
     foreach($this->Target as $key => $target){
index f4d3377b52ee70a73a2afccd8746dfb15a99de5c..3dd8a97c7569983cd197e810c3671b0548ec544b 100644 (file)
        </tr>
        <tr>
                <td colspan="2">
-            <table  summary="" style="border:1px solid #B0B0B0;width:100%; " id="t_scrolltable" cellspacing=0 cellpadding=0>
+            <table  summary="" style="border:1px solid #B0B0B0;width:600px; " id="t_scrolltable_onlywidth" cellspacing=0 cellpadding=0>
                 <tr>
                     <td>
                                                {render acl=$TargetACL}