From 881464e3a5a63ac6dd27ddedad9b098c88c8b024 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 7 Oct 2010 14:05:02 +0000 Subject: [PATCH] Allow to navigate through the folder entries using the entry link git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19937 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../FolderWidget/class_FolderWidgetListing.inc | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidgetListing.inc b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidgetListing.inc index 1d74043dd..2460a9952 100644 --- a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidgetListing.inc +++ b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidgetListing.inc @@ -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) { -- 2.30.2