I am using fancyBox v2.0.4 ...
Well this should be simple, however it does not work in my case... I simply want to run a callback function when the fancybox is closed...
$('a#stpa_announcement_details_open').fancybox({
'onCleanup': function() { alert('test') },
'hideOnContentClick': true
});
does not work
$('a#stpa_announcement_details_open').fancybox({
'onClosed': function() { alert('test') },
'hideOnContentClick': true
});
does not work
You are using options from older versions, so it would be like -
$('a#stpa_announcement_details_open').fancybox({
'beforeClose': function() { alert('test') },
'closeClick': true
});
You can find these options at http://fancyapps.com/fancybox/#docs
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With