summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 07f8763)
raw | patch | inline | side by side (parent: 07f8763)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Aug 2006 04:23:10 +0000 (04:23 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 10 Aug 2006 04:23:10 +0000 (04:23 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4450 594d385d-05f5-0310-b6e9-bd551577e9d8
include/class_tabs.inc | patch | blob | history |
diff --git a/include/class_tabs.inc b/include/class_tabs.inc
index 78147cd0fa6332c23b400a2319e017b6d90e3f28..0b422970e096bb4337ba4bf2e8bb2b7928a421d2 100644 (file)
--- a/include/class_tabs.inc
+++ b/include/class_tabs.inc
$display.= "<td style=\"vertical-align:bottom;width:1px;\">";
/* Shorten string if its too long for the tab headers*/
- $title= '<nobr>'._($name).'</nobr>';
+ $title= _($name);
if (mb_strlen($title, 'UTF-8') > 28){
$title= mb_substr($title,0, 25, 'UTF-8')."...";
}
-
+
+ /* nobr causes w3c warnings so we use to keep the tab name in one line */
+ $title= preg_replace("/ /"," ",$title);
+
if ($_SESSION['js']==FALSE){
$display.= "<div class=\"$style[$index]\"><input type=\"submit\" name=\"$class\"".
" class=\"$style[$index]\" value=\"$title\"";