summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2bfe689)
raw | patch | inline | side by side (parent: 2bfe689)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 29 Jan 2010 10:18:59 +0000 (10:18 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 29 Jan 2010 10:18:59 +0000 (10:18 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15443 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/include/class_baseSelector.inc | patch | blob | history | |
gosa-core/include/class_listing.inc | patch | blob | history |
index 0de55ac3293bfe7fe1bdaba67dfa349568d1375f..fbb04a79c468ded8049c7768fca913f25492e2e4 100644 (file)
private $base;
private $pid;
private $action;
+ private $height= 500;
private $submitButton= true;
protected $tree;
protected $pathMapping;
}
+ function setHeight($value)
+ {
+ $this->height= $value;
+ }
+
+
function setBase($base)
{
if (isset($this->pathMapping[$base])) {
$this->base= $new_base;
$this->action= 'rebase';
} else {
- die ("Base mismatch!");
+ return false;
}
}
} elseif (isset($_POST['bs_input_'.$this->pid])) {
/* Skip if there's no change */
if (($this->tree && $this->base == $last_base) && !$force) {
- return;
+ return true;
}
$link= "href='?plug=".$_GET['plug']."&PID=".$this->pid."&REBASE=".base64_encode($config->current['BASE'])."'";
"</script>";
$selected= $this->base == $config->current['BASE']?"Selected":"";
- $this->tree.= "<div class='treeList' style='display:none' id='bs_".$this->pid."' onmouseover=\"window.clearTimeout(rtimer);\" onmouseout=\"rtimer= Element.hide.delay(0.25, 'bs_".$this->pid."')\"><a class='treeList$selected' $link>/ ["._("Root")."]</a><ul class='treeList'>\n";
+ $this->tree.= "<div class='treeList' style='display:none;max-height:".$this->height."px' id='bs_".$this->pid."' onmouseover=\"window.clearTimeout(rtimer);\" onmouseout=\"rtimer= Element.hide.delay(0.25, 'bs_".$this->pid."')\"><a class='treeList$selected' $link>/ ["._("Root")."]</a><ul class='treeList'>\n";
$first= true;
$last_indent= 2;
$this->tree.= " <input class='center' type='image' src='images/lists/submit.png' align='middle' title='"._("Submit")."' name='submit_base_".$this->pid."' id='submit_base_".$this->pid."' alt='"._("Submit")."'>";
}
+ return true;
}
function render()
index 887e3cbf1cbec4513549a6c1f768f602f5c63069..20fcf22d62eea24eafb366640e8c5cb77e57f11f 100644 (file)
}
+ function getEntries()
+ {
+ return $this->entries;
+ }
+
+
function getType($dn)
{
if (isset($this->objectDnMapping[$dn])) {