[TYPO3-core] RFC: Bug 5048: JSMENU produces error if using baseurls

Oliver Hader oh at inpublica.de
Sat Feb 24 16:05:17 CET 2007


This is a SVN patch request.

Problem:
JSMENUs could be used with the "noLink" property. If done so and
config.baseURL is defined, the expected missing link will be set to the
defined baseURL. Thus, the noLink property has no effect at all.
Furthermore there is an error in t3lib/jsfunc.menu.js. To determine if
an array has elements, "size" is the wrong property.

Solution:
Only use the baseUrlWrap if the item should be linked at all.
Use "length" instead of "size" for JavaScript arrays.

Comments:
Original fix by Jens Köster.
I did some other small changes to jsfunc.menu.js.

Bugtracker references:
http://bugs.typo3.org/view.php?id=5048

Branches: TYPO3_4-0 & Trunk


olly
-- 
Oliver Hader
http://inpublica.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005048.patch
Type: text/x-diff
Size: 2205 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20070224/51de9847/attachment.bin 


More information about the TYPO3-team-core mailing list