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

Oliver Hader oh at inpublica.de
Sat Jul 7 14:52:53 CEST 2007


FYI: Committed to SVN
* TYPO3_4-1 (rev. 2393)
* Trunk (rev. 2394)

olly


Michael Stucki schrieb:
> Tested using the TS code on the bugtracker page. Works fine in Firefox
> and Konqueror at least.
> 
> If you also tested this in IE, you can go ahead then.
> 
> - michael
> 
> Oliver Hader schrieb:
>> 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
-- 
Oliver Hader
http://inpublica.de/


More information about the TYPO3-team-core mailing list