From 0c6c3aaa26d35ccf369e87c38c23ee6235d49642 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 1 Feb 2010 12:52:09 +0000 Subject: [PATCH] Updated base selector git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15541 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/themes/default/style.css | 5 ++-- gosa-core/include/class_baseSelector.inc | 32 ++++++++++++------------ 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/gosa-core/html/themes/default/style.css b/gosa-core/html/themes/default/style.css index c1e78c966..6b736c5aa 100644 --- a/gosa-core/html/themes/default/style.css +++ b/gosa-core/html/themes/default/style.css @@ -1940,6 +1940,7 @@ background-color:#DDD; a.treeList { padding:2px; +cursor:pointer; } a.treeListSelected { @@ -1947,12 +1948,12 @@ font-weight:bold; color:#1010AF; background-color:#DDD; padding:2px; +cursor:pointer; } a.treeList:hover,a.treeListSelected:hover { background-color:#DDD; padding:2px; -cursor:pointer; } ul.treeList a { @@ -1989,4 +1990,4 @@ position:absolute; z-index:500; overflow-y:auto; float:left; -} \ No newline at end of file +} diff --git a/gosa-core/include/class_baseSelector.inc b/gosa-core/include/class_baseSelector.inc index b05ff5b21..4da32961e 100644 --- a/gosa-core/include/class_baseSelector.inc +++ b/gosa-core/include/class_baseSelector.inc @@ -124,21 +124,21 @@ class baseSelector { $this->lastState= false; return false; } - } - - // Input field set? - if (isset($_POST['bs_input_'.$this->pid])) { - - // Take over input field base - if ($this->submitButton && isset($_POST['submit_base_'.$this->pid.'_x']) || !$this->submitButton) { - - // Check if base is available - $this->lastState= false; - foreach ($this->pathMapping as $key => $path) { - if (mb_strtolower($path) == mb_strtolower($_POST['bs_input_'.$this->pid])) { - $this->base= $key; - $this->lastState= true; - break; + }else{ + // Input field set? + if (isset($_POST['bs_input_'.$this->pid])) { + + // Take over input field base + if ($this->submitButton && isset($_POST['submit_base_'.$this->pid.'_x']) || !$this->submitButton) { + + // Check if base is available + $this->lastState= false; + foreach ($this->pathMapping as $key => $path) { + if (mb_strtolower($path) == mb_strtolower($_POST['bs_input_'.$this->pid])) { + $this->base= $key; + $this->lastState= true; + break; + } } } } @@ -164,7 +164,7 @@ class baseSelector { $this->tree.= ""; $selected= $this->base == $config->current['BASE']?"Selected":""; - $this->tree.= "