Fixed bug #11990: Optimize output of TCEforms suggest results (thanks to Steffen...
authorRupert Germann <rupi@gmx.li>
Fri, 18 Sep 2009 11:27:14 +0000 (11:27 +0000)
committerRupert Germann <rupi@gmx.li>
Fri, 18 Sep 2009 11:27:14 +0000 (11:27 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@5977 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/tceforms/class.t3lib_tceforms_suggest_defaultreceiver.php
typo3/stylesheet.css

index c10e73b..6b8b95a 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2009-09-18  Rupert Germann  <rupi@gmx.li>
+
+       * Fixed bug #11990: Optimize output of TCEforms suggest results (thanks to Steffen Gebert)
+
 2009-09-18  Oliver Hader  <oliver@typo3.org>
 
        * Follow-up to bug #11831: Removed reference operator from an object
index c96afc0..cac992a 100644 (file)
@@ -188,10 +188,14 @@ class t3lib_TCEforms_Suggest_DefaultReceiver {
                                $iconPath = $this->getIcon($row);
                                $uid = ($row['t3ver_oid'] > 0 ? $row['t3ver_oid'] : $row['uid']);
 
-                               $croppedPath = $path = $this->getRecordPath($row, $uid);
-                               if (strlen($croppedPath) > 30) {
-                                       $croppedPath = $GLOBALS['LANG']->csConvObj->crop($GLOBALS['LANG']->charSet, $path, 10) .
-                                               '...' . $GLOBALS['LANG']->csConvObj->crop($GLOBALS['LANG']->charSet, $path, -20);
+                               $path = $this->getRecordPath($row, $uid);
+                               if (strlen($path) > 30) {
+                                       $croppedPath = '<abbr title="' . htmlspecialchars($path) . '">' .
+                                               htmlspecialchars($GLOBALS['LANG']->csConvObj->crop($GLOBALS['LANG']->charSet, $path, 10) .
+                                                       '...' . $GLOBALS['LANG']->csConvObj->crop($GLOBALS['LANG']->charSet, $path, -20)
+                                               ) . '</abbr>';
+                               } else {
+                                       $croppedPath = htmlspecialchars($path);
                                }
 
                                $label = $this->getLabel($row);
index c544701..2a58a0a 100644 (file)
@@ -1224,6 +1224,14 @@ div.typo3-TCEforms-suggest-choices span.suggest-path {
        margin-top:0.3em;
 }
 
+div.typo3-TCEforms-suggest-choices span.suggest-path abbr {
+       border-bottom: none;
+}
+
+div.typo3-TCEforms-suggest-choises a {
+       cursor: pointer;
+}
+
 
 /* - - - - - - - - - - - - - - - - - - - - -