[TYPO3-core] RFC: Bug #15428: Element-Browser page tree has HTML / JS Errors

Steffen Ritter info at rs-websystems.de
Wed Aug 11 17:56:38 CEST 2010


Am 11.08.2010 16:28, schrieb Sven Juergens:
> Hi,
>
> This is an SVN patch request.
>
> Type: Bugfix
>
> Bugtracker references:
> http://bugs.typo3.org/view.php?id=15428
>
> Branches:
> trunk, 4.4
>
> Problem:
> Please have a look at the attached image.
> Steps to reproduce:
> add a DB Mount to an BE-User, press the red arrowbullet on a page (not
> on root)
>
> Solution:
> in class.browse_links.php is a give over of a span tag as imagefile to
> the javascript function insertElement(). This var is not used in
> insertElement() , so remove the span tag, which come from
> t3lib_iconWorks::getSpriteIconForRecord('pages', $mainPageRec);
>
> Best regards,
> Sven
-1 by reading

why do you remove the icon at all? you could
a, move it befor or after or inside the link,
b, remove the overal A-tag mess withs substr etc and call sth like: 
$ATag = t3lib_iconWorks::getSpriteIconForRecord,('pages',$mainPageRec, 
array('onClick' => ....));

So I would like to see a clean solution instead of quick'n'removing

regards

Steffen


More information about the TYPO3-team-core mailing list