summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 6a28740)
raw | patch | inline | side by side (parent: 6a28740)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 Oct 2009 13:41:47 +0000 (13:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 Oct 2009 13:41:47 +0000 (13:41 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14671 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/users/class_userManagement.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc
index f5f6408b8f58f2f46b62092224728e35354f9966..dfab7aeff04b3eb18c78241d53c41bb9c6ebc744 100644 (file)
$this->registerAction("sendMessage", "sendMessage");
$this->registerAction("saveEventDialog", "saveEventDialog");
$this->registerAction("abortEventDialog", "closeDialogs");
+
+ // Register shortcut icon actions
+ $this->registerAction("edit_user","editEntry");
+ $this->registerAction("edit_posixAccount","editEntry");
+ $this->registerAction("edit_mailAccount","editEntry");
+ $this->registerAction("edit_sambaAccount","editEntry");
+ $this->registerAction("edit_netatalk","editEntry");
+ $this->registerAction("edit_environment","editEntry");
+ $this->registerAction("edit_gofaxAccount","editEntry");
+ $this->registerAction("edit_phoneAccount","editEntry");
}
}
+ function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
+ {
+ management::editEntry($action,$target);
+
+ if(preg_match("/^edit_/",$action)){
+ $tab = preg_replace("/^edit_/","",$action);
+ if(isset($this->tabObject->by_object[$tab])){
+ $this->tabObject->current = $tab;
+ }else{
+ trigger_error("Unknown tab: ".$tab);
+ }
+ }
+ }
+
+
function closeDialogs()
{
management::closeDialogs();
"alt" => _("Samba"),
"title" => _("Edit samba properties")),
"apple-user" => array("image" => "plugins/netatalk/images/select_netatalk.png",
- "plugin" => "sambaAccount",
+ "plugin" => "netatalk",
"alt" => _("Netatalk"),
"title" => _("Edit netatalk properties")),
"gotoEnvironment" => array("image" => "plugins/users/images/small_environment.png",
- "plugin" => "gotoEnvironment",
+ "plugin" => "environment",
"alt" => _("Environment"),
"title" => _("Edit environment properties")),
"goFaxAccount" => array("image" => "plugins/users/images/fax_small.png",
- "plugin" => "goFaxAccount",
+ "plugin" => "gofaxAccount",
"alt" => _("FAX"),
"title" => _("Edit FAX properties")),
"goFonAccount" => array("image" => "plugins/gofon/images/select_phone.png",
- "plugin" => "goFonAccount",
+ "plugin" => "phoneAccount",
"alt" => _("Phone"),
"title" => _("Edit phone properties")));
// Walk thru map
foreach ($map as $oc => $properties) {
- if (in_array_ics($oc, $classes)) {
+ if (in_array_ics($oc, $classes) || 1) {
$result.="<input class='center' type='image' src='".$properties['image']."' ".
"alt='".$properties['alt']."' title='".$properties['title'].
"' name='listing_edit_".$properties['plugin']."_$row' style='padding:1px'>";