Code

Add non-breaking hypen for IE
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Feb 2010 13:58:32 +0000 (13:58 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 1 Feb 2010 13:58:32 +0000 (13:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15547 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index 6b736c5aac77ad83cd0fddcdb7270fd727619dde..17b3537138ffab19be6f93aecae2dbf7df8fef4a 100644 (file)
@@ -1968,6 +1968,12 @@ line-height:20px;
 background:url(../../images/lists/node.png) no-repeat;
 }
 
+/* IE workaround - results in even more strange display problems in IE8
+ul.treeList li {
+background: expression((this.parentNode.lastChild == this)? '#fff url(images/lists/lastnode.png) no-repeat' : '#fff url(images/lists/node.png) no-repeat');
+}
+*/
+
 li.treeListSelected a {
 font-weight:bold;
 color:#1010AF;
index 4da32961e827ac04fa56158b03c0ad07e3a89090..1d35ea4fba22616d1768b27c311c1dd0d58a6c39 100644 (file)
@@ -193,7 +193,7 @@ class baseSelector {
       }
       $selected= $this->base == $base?" class='treeListSelected'":"";
       $link= "onclick=\"\$('bs_rebase_".$this->pid."').value='".base64_encode($base)."';$('submit_tree_base_".$this->pid."').click();\"";
-      $this->tree.= "<li><a$selected $link>".str_replace(' ', '&nbsp;', ldap::fix(preg_replace('/^[a-z0-9]+=([^,]+),.*$/i', '$1', $base)))."</a>";
+      $this->tree.= "<li><a$selected $link>".str_replace('-', '&#8209;', str_replace(' ', '&nbsp;', ldap::fix(preg_replace('/^[a-z0-9]+=([^,]+),.*$/i', '$1', $base))))."</a>";
 
       $last_indent= $indent;
       $first= false;