[BUGFIX] Enlarge new content element wizard links click area 57/42157/2
authorMathias Brodala <mbrodala@pagemachine.de>
Fri, 31 Jul 2015 07:22:08 +0000 (09:22 +0200)
committerMarkus Klein <markus.klein@typo3.org>
Fri, 31 Jul 2015 08:03:48 +0000 (10:03 +0200)
This encapsulates the whole items within the new content element
wizard with a link to ensure the whole area is clickable.

This fixes a regression introduced by markup changes.

Resolves: #68640
Releases: master
Change-Id: Ic3a7c6a3004d522fc517653ea078a75d93b0b21d
Reviewed-on: http://review.typo3.org/42157
Reviewed-by: Benjamin Kott <info@bk2k.info>
Tested-by: Benjamin Kott <info@bk2k.info>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
typo3/sysext/backend/Classes/Controller/ContentElement/NewContentElementController.php

index 575777b..34d588d 100644 (file)
@@ -247,18 +247,17 @@ class NewContentElementController {
                                        }
                                        $menuItems[$key]['content'] .= '
                                                <div class="media">
-                                                       ' . $content . '
-                                                       <div class="media-left">
-                                                               <a href="#" onclick="' . htmlspecialchars($aOnClick) . '">
+                                                       <a href="#" onclick="' . htmlspecialchars($aOnClick) . '">
+                                                               ' . $content . '
+                                                               <div class="media-left">
                                                                        <img' . IconUtility::skinImg($this->doc->backPath, $icon) . ' alt="" />
-                                                               </a>
-                                                       </div>
-                                                       <div class="media-body">
-                                                               <a href="#" onclick="' . htmlspecialchars($aOnClick) . '">
-                                                                       <strong>' . htmlspecialchars($wInfo['title']) . '</strong>
-                                                                       <br />' . nl2br(htmlspecialchars(trim($wInfo['description']))) .
-                                                               '</a>
-                                                       </div>
+                                                               </div>
+                                                               <div class="media-body">
+                                                                       <strong>' . htmlspecialchars($wInfo['title']) . '</strong>' .
+                                                                       '<br />' .
+                                                                       nl2br(htmlspecialchars(trim($wInfo['description']))) .
+                                                               '</div>
+                                                       </a>
                                                </div>';
                                        $cc++;
                                }