From 24c0cdb7acc400ab5f11efe6267d81d19f066a8c Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 29 Jan 2010 10:18:59 +0000 Subject: [PATCH] Updated listing git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15443 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_baseSelector.inc | 14 +++++++++++--- gosa-core/include/class_listing.inc | 6 ++++++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/gosa-core/include/class_baseSelector.inc b/gosa-core/include/class_baseSelector.inc index 0de55ac32..fbb04a79c 100644 --- a/gosa-core/include/class_baseSelector.inc +++ b/gosa-core/include/class_baseSelector.inc @@ -25,6 +25,7 @@ class baseSelector { private $base; private $pid; private $action; + private $height= 500; private $submitButton= true; protected $tree; protected $pathMapping; @@ -55,6 +56,12 @@ class baseSelector { } + function setHeight($value) + { + $this->height= $value; + } + + function setBase($base) { if (isset($this->pathMapping[$base])) { @@ -101,7 +108,7 @@ class baseSelector { $this->base= $new_base; $this->action= 'rebase'; } else { - die ("Base mismatch!"); + return false; } } } elseif (isset($_POST['bs_input_'.$this->pid])) { @@ -118,7 +125,7 @@ class baseSelector { /* 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'])."'"; @@ -133,7 +140,7 @@ class baseSelector { ""; $selected= $this->base == $config->current['BASE']?"Selected":""; - $this->tree.= "