Code

Updated action handling for the config management list
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Oct 2010 09:35:28 +0000 (09:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 25 Oct 2010 09:35:28 +0000 (09:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20138 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/newConfigManagement/DeviceConfig-list.xml
gosa-core/plugins/admin/newConfigManagement/class_ConfigManagementListing.inc
gosa-core/plugins/admin/newConfigManagement/class_newConfigManagement.inc

index dce3d5281c85a9fb0d212e505183a132513ec251..99bc644f86ee34df72a492b9465ce50e357cbc38 100644 (file)
@@ -69,7 +69,7 @@
   <actiontriggers snapshot="false" copypaste="false">
 
     <action>
-      <name>edit</name>
+      <name>editEntry</name>
       <type>entry</type>
       <image>images/lists/edit.png</image>
       <label>Edit item</label>
index b495878077670b6fc01c6d7e571aad06426fcab4..6f6d48f44dbae7930d45ba322b25d37fe3a6dddf 100644 (file)
@@ -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);
index f038f01b399189f217070530afeff19b0ce6d364..73349b40f3fee97e40e520541e9f25a1c543fc51 100644 (file)
@@ -262,6 +262,12 @@ class newConfigManagement extends plugin
     }
 
 
+    function openEntry($id)
+    {
+        print_a($id); 
+    }
+
+
     public static function plInfo()
     {
         return (array(