cclaerhout
Well-known member
I'm not sure this topic should be in the bug, questions forums or here, but when some html (& css & js) are inserted using the XenForo xfInsert function which is wrapped inside the external loader some elements which should be hidden (their css are for example: display: none) are still displayed.
Example:
Here's a workaround but I don't understand this behaviour:
Example:
Code:
$templateHtml = $(ajaxData.templateHtml);
new XenForo.ExtLoader(ajaxData, function()
{
$templateHtml.xfInsert('replaceAll', self.trigger, 'xfFadeIn');
});
Here's a workaround but I don't understand this behaviour:
Code:
$templateHtml = $(ajaxData.templateHtml);
$hideThis = $templateHtml.filter(function( index ) {
if(this.style) {
return $(this).css('display') == 'none';
}
})
new XenForo.ExtLoader(ajaxData, function()
{
$templateHtml.xfInsert('replaceAll', self.trigger, 'xfFadeIn');
$hideThis.hide();
});