close fancy box from function from within open 'fancybox'
Try this: parent.$.fancybox.close();
See Fancybox API documentation.
According to http://fancybox.net/faq
- How can I close FancyBox from other element? ?
Just call
$.fn.fancybox.close()
on your onClick event
So you should just be able to add in the fn
.
If you just want to close the fancy box it is sufficient to close it.
$('#inline').click(function(){
$.fancybox.close();
});