I used the 1.3.6 version of fancybox with jquery 2.0.3, and had a JS error
(and the close button stays hidden)
TypeError: content.get(...).style.removeAttribute is not a function
content.get(0).style.removeAttribute('filter');
content.get(0).style.removeAttribute('filter');
This fix worked for me at line 570 or 580 line
//content.get(0).style.removeAttribute('filter');
//wrap.get(0).style.removeAttribute('filter');
$('#fancybox-content').css('filter', 0);
$('#fancybox-wrap').css('filter', 0);
//content.get(0).style.removeAttribute('filter');
//wrap.get(0).style.removeAttribute('filter');
$('#fancybox-content').css('filter', 0);
$('#fancybox-wrap').css('filter', 0);
filter is a css property, and not an attribute - as I know
Sure there is a better FIX, but maybe it helps...
Sure there is a better FIX, but maybe it helps...
0 comments:
Post a Comment