From 0e024de6be1a06fdfaef7633eadf8fe01ae70b8e Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 25 Oct 2010 09:35:28 +0000 Subject: [PATCH] Updated action handling for the config management list git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20138 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/newConfigManagement/DeviceConfig-list.xml | 2 +- .../newConfigManagement/class_ConfigManagementListing.inc | 8 +++++++- .../newConfigManagement/class_newConfigManagement.inc | 6 ++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/gosa-core/plugins/admin/newConfigManagement/DeviceConfig-list.xml b/gosa-core/plugins/admin/newConfigManagement/DeviceConfig-list.xml index dce3d5281..99bc644f8 100644 --- a/gosa-core/plugins/admin/newConfigManagement/DeviceConfig-list.xml +++ b/gosa-core/plugins/admin/newConfigManagement/DeviceConfig-list.xml @@ -69,7 +69,7 @@ - edit + editEntry entry images/lists/edit.png diff --git a/gosa-core/plugins/admin/newConfigManagement/class_ConfigManagementListing.inc b/gosa-core/plugins/admin/newConfigManagement/class_ConfigManagementListing.inc index b49587807..6f6d48f44 100644 --- a/gosa-core/plugins/admin/newConfigManagement/class_ConfigManagementListing.inc +++ b/gosa-core/plugins/admin/newConfigManagement/class_ConfigManagementListing.inc @@ -124,7 +124,8 @@ class ConfigManagementListing extends management // Register default actions $this->registerAction("new", "newEntry"); - $this->registerAction("edit", "editEntry"); + $this->registerAction("editEntry", "editEntry"); + $this->registerAction("open", "openEntry"); $this->registerAction("apply", "applyChanges"); $this->registerAction("save", "saveChanges"); $this->registerAction("cancel", "cancelEdit"); @@ -143,6 +144,11 @@ class ConfigManagementListing extends management $this->parent->removeEntry($target); } + function openEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="") + { + $this->parent->openEntry($target); + } + function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="") { $this->parent->editEntry($target); diff --git a/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc index f038f01b3..73349b40f 100644 --- a/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc +++ b/gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc @@ -262,6 +262,12 @@ class newConfigManagement extends plugin } + function openEntry($id) + { + print_a($id); + } + + public static function plInfo() { return (array( -- 2.30.2