Code

Updated rendering of act
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Mar 2010 07:45:16 +0000 (07:45 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 24 Mar 2010 07:45:16 +0000 (07:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17036 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_listing.inc

index 10fec9988334b15222a27ffd96ac1fd712a619fa..75fe5cd42c941fb169a730cc5fa3b1cb19cffe89 100644 (file)
@@ -1100,9 +1100,11 @@ class listing {
 
   function renderActionMenu()
   {
+    $result= "<input type='hidden' name='act' id='act' value=''><div style='display:none'><input type='submit' name='exec_act' id='exec_act' value=''></div>";
+
     // Don't send anything if the menu is not defined
     if (!isset($this->xmlData['actionmenu']['action'])){
-      return "";
+      return $result;
     }
 
     // Array?
@@ -1112,8 +1114,7 @@ class listing {
 
     // Load shortcut
     $actions= &$this->xmlData['actionmenu']['action'];
-    $result= "<input type='hidden' name='act' id='act' value=''><div style='display:none'><input type='submit' name='exec_act' id='exec_act' value=''></div>".
-             "<ul class='level1' id='root'><li><a href='#'>"._("Actions")."&nbsp;".image("images/lists/sort-down.png")."</a>";
+    $result= "<ul class='level1' id='root'><li><a href='#'>"._("Actions")."&nbsp;".image("images/lists/sort-down.png")."</a>";
 
     // Build ul/li list
     $result.= $this->recurseActions($actions);