Well – no answer to my post means I have to fix it for myself ??
The bug is in jquery.fancybox-1.3.4[.pack].js in this code:
titleStr = $.isFunction(currentOpts.titleFormat) ? currentOpts.titleFormat(titleStr, currentArray, currentIndex, currentOpts) : _format_title(titleStr);
if (!titleStr || titleStr === '') {
title.hide();
return;
}
The “if” statement should hide the title bar if no title is available. The problem is that the first line will add a DIV tag to the titleStr even if there is no title. Therefore the titleStr will never be then equal to an empty string: ”. According to the plugin settings, in case of empty title the titleStr can contain:
'<div id="fancybox-title-over"> </div>'
'<div id="fancybox-title-inside"> </div>'
'<div id="fancybox-title-outside"> </div>'
'<table id="fancybox-title-float-wrap" cellpadding="0" cellspacing="0"><tr><td id="fancybox-title-float-left"></td><td id="fancybox-title-float-main"> </td><td id="fancybox-title-float-right"></td></tr></table>'
To correct this we should check the original object currentOpts.title. In best scenario with the trim function:
titleStr = $.isFunction(currentOpts.titleFormat) ? currentOpts.titleFormat(titleStr, currentArray, currentIndex, currentOpts) : _format_title(titleStr);
if (!titleStr || $.trim(currentOpts.title) === '') {
title.hide();
return;
}