Code

Allow to navigate through the folder entries using the entry link
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Oct 2010 14:05:02 +0000 (14:05 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Oct 2010 14:05:02 +0000 (14:05 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19937 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidgetListing.inc

index 1d74043dd9da53199d0aaacbb77f024e5e2e6f43..2460a99528282c0c55ae3a41170a5fcb1773d05b 100644 (file)
@@ -32,8 +32,18 @@ class FolderWidgetListing extends management
         //  once setFolderList is called.
         $this->folderSelector = new ItemSelector(array($this->rootBase => '/'),$this->rootBase,$this->rootBase);
         parent::__construct($config, $ui, "Folder", $headpage);
+
+        // Register default actions
+        $this->registerAction("new",        "newEntry");
+        $this->registerAction("edit",       "openEntry"); // !! We forward 'edit' to 'open' to have a department like navigation.
+        $this->registerAction("editEntry",  "editEntry");
     }
 
+    function openEntry($action, $targets)
+    {
+        $this->setBase($targets[0]);
+    }
+    
     
     function setFolderList($folderList)
     {