summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: b0f15f6)
raw | patch | inline | side by side (parent: b0f15f6)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 28 Sep 2010 13:37:15 +0000 (13:37 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 28 Sep 2010 13:37:15 +0000 (13:37 +0000) |
-The xml filter files was messed up, we could use the action edit..
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19838 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19838 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/Config/DeviceConfig-list.xml | patch | blob | history | |
gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/Config/DeviceConfig-list.xml b/gosa-plugins/goto/admin/systems/goto/Config/DeviceConfig-list.xml
index 9cd8299e895724ce62ee8efd1e8381a3b8adcb42..0e6bbe3acf8681bd7ee4e96f1b4b40fda98b1171 100644 (file)
<label>Device</label>
<depends>Device</depends>
</action>
+ </action>
<action>
<name>remove</name>
<actiontriggers snapshot="false" copypaste="false">
<action>
- <name>edit</name>
+ <name>editEntry</name>
<type>entry</type>
<image>images/lists/edit.png</image>
<label>Edit role</label>
diff --git a/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc b/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc
index b885f495dd075441618a3874925cf9c6da904b50..fda9825eaee2aadb99f038673a5d522df86df57b 100644 (file)
function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
+ {
+ echo "Jajajaaa";
+ }
+
+
+ function openEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
{
$this->setCurrentItem($target[0]);
}
$headpage->setFilter($filter);
parent::__construct($this->config, $this->ui, "services", $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");
+ $this->registerAction("apply", "applyChanges");
+ $this->registerAction("save", "saveChanges");
+ $this->registerAction("cancel", "cancelEdit");
+ $this->registerAction("cancelDelete", "cancelEdit");
+ $this->registerAction("remove", "removeEntryRequested");
+ $this->registerAction("removeConfirmed", "removeEntryConfirmed");
}