Code

Added possibililty to hide the | character
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 Apr 2008 07:22:37 +0000 (07:22 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 23 Apr 2008 07:22:37 +0000 (07:22 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10626 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_MultiSelectWindow.inc

index c5479c11f3254ed1c4c10f0d212ed2dc2060a9aa..e76ee82ffe76c1f3b03b584ae666d11c30ea83f5 100644 (file)
@@ -211,7 +211,7 @@ class MultiSelectWindow{
 
 
   /* Return default header part. With back, home and root icons and department selection */
-  function get_default_header()
+  function get_default_header($seperator= TRUE)
   {
     $enable_back = TRUE;
     $enable_root = TRUE;
@@ -260,9 +260,10 @@ class MultiSelectWindow{
    
     /* And at least draw reload button, this button is enabled everytime */ 
     $listhead .=  " <input class='center' type='image' src='images/lists/reload.png' align='middle'
-      title='"._("Reload list")."' name='submit_department' alt='"._("Submit")."'>&nbsp;".
-      " <img   class='center' src='images/lists/seperator.png' align='middle' alt='-' height='16' width='1'>&nbsp;";
-
+      title='"._("Reload list")."' name='submit_department' alt='"._("Submit")."'>&nbsp;";
+    if ($seperator){
+      $listhead.= " <img   class='center' src='images/lists/seperator.png' align='middle' alt='-' height='16' width='1'>&nbsp;";
+    }
     return ($listhead);
   }