summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: bec0b26)
raw | patch | inline | side by side (parent: bec0b26)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 18 Jan 2010 09:53:45 +0000 (09:53 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 18 Jan 2010 09:53:45 +0000 (09:53 +0000) |
-We are now able to select entries again
-Abort dialog button is still missing
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15166 594d385d-05f5-0310-b6e9-bd551577e9d8
-Abort dialog button is still missing
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15166 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_baseSelectDialog.inc | patch | blob | history |
diff --git a/gosa-core/include/class_baseSelectDialog.inc b/gosa-core/include/class_baseSelectDialog.inc
index 1aebc8328c97971dd698468956c630dcd1c66f20..c3b09b6f375df8cafcf9e1818212bd20a32eb622 100644 (file)
# if (session::global_is_set(get_class($this)."_filter")){
# $filter= session::global_get(get_class($this)."_filter");
# } else {
- $filter = new filter(get_template_path("dep-filter.xml"));
+ $filter = new filter(get_template_path("dep-filter.xml"));
# }
- $this->setFilter($filter);
+ $this->setFilter($filter);
- // Build headpage
- $headpage = new listing(get_template_path("dep-list.xml"));
- $headpage->registerElementFilter("depLabel", "baseSelectDialog::filterDepLabel");
- $headpage->setFilter($filter);
- parent::__construct($config, $this->ui, "departments", $headpage);
+ // Build headpage
+ $headpage = new listing(get_template_path("dep-list.xml"));
+ $headpage->registerElementFilter("depLabel", "baseSelectDialog::filterDepLabel");
+ $headpage->setFilter($filter);
+ $this->registerAction("open","openEntry");
+ parent::__construct($config, $this->ui, "departments", $headpage);
+ }
+
+
+ // An action handler which enables to switch into deparmtment by clicking the names.
+ function openEntry($action,$entry)
+ {
+ $headpage = $this->getHeadpage();
+ $headpage->setBase(array_pop($entry));
}
return("<a href='?plug=".$_GET['plug']."&PID=$pid&act=listing_open_$row' title='$dn'>$ou</a>");
}
-
+
function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
{
if(count($target) == 1){
$this->handleActions($this->detectPostActions());
}
+
function isClosed()
{
- return(!empty($this->BaseToUse));
+ return(FALSE);
}
- function isSelected()
- {
- return($this->BaseToUse);
- }
+ function isSelected()
+ {
+ return($this->BaseToUse);
+ }
- function setCurrentBase($base)
- {
- $headpage = $this->getHeadpage();
- $headpage->setBase = $base;
- }
+ function setCurrentBase($base)
+ {
+ $headpage = $this->getHeadpage();
+ $headpage->setBase = $base;
+ }
}
// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
?>