Code

Updated base selector
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Feb 2010 12:52:09 +0000 (12:52 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Feb 2010 12:52:09 +0000 (12:52 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15541 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/html/themes/default/style.css
gosa-core/include/class_baseSelector.inc

index c1e78c966948f81c8f78e2dba48c228391e21561..6b736c5aac77ad83cd0fddcdb7270fd727619dde 100644 (file)
@@ -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
+}
index b05ff5b211608d0287e2eaba5ed5963efec68d9b..4da32961e827ac04fa56158b03c0ad07e3a89090 100644 (file)
@@ -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.= "</script>";
 
     $selected= $this->base == $config->current['BASE']?"Selected":"";
-    $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";
+    $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>/&nbsp;["._("Root")."]</a><ul class='treeList'>\n";
     $first= true;
     $last_indent= 2;