I have 2 types of fancyboxes in same page:
- picture gallery - fancybox with no border (padding set t 0 in options) , different close button etc
- normal fancybox- This has border etc
The problem that I have is when I click the picture gallery , it works good. But after that when I click the normal fancybox link, this one also seems to work like the picture gallery ( I mean no border, different close button etc).
this happens vice versa too. That is the picture gallery works normal when clicked after the normal link.
I have 2 different link with 2 different classes - fancybox, fancybox_picture.
On document load I write
$('.fancybox.iframe').fancybox({
//options
});
$('.fancybox_picture.iframe').fancybox({
//different options
});
I tried using .live () also, but no luck.