From 10a0e2e3f06d826c410908ec5bd6f71f33589526 Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 1 Feb 2010 13:58:32 +0000 Subject: [PATCH] Add non-breaking hypen for IE git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15547 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/html/themes/default/style.css | 6 ++++++ gosa-core/include/class_baseSelector.inc | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gosa-core/html/themes/default/style.css b/gosa-core/html/themes/default/style.css index 6b736c5aa..17b353713 100644 --- a/gosa-core/html/themes/default/style.css +++ b/gosa-core/html/themes/default/style.css @@ -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; diff --git a/gosa-core/include/class_baseSelector.inc b/gosa-core/include/class_baseSelector.inc index 4da32961e..1d35ea4fb 100644 --- a/gosa-core/include/class_baseSelector.inc +++ b/gosa-core/include/class_baseSelector.inc @@ -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.= "
  • ".str_replace(' ', ' ', ldap::fix(preg_replace('/^[a-z0-9]+=([^,]+),.*$/i', '$1', $base))).""; + $this->tree.= "
  • ".str_replace('-', '‑', str_replace(' ', ' ', ldap::fix(preg_replace('/^[a-z0-9]+=([^,]+),.*$/i', '$1', $base)))).""; $last_indent= $indent; $first= false; -- 2.30.2