A technical blog from an ASP.NET / C# developer about anything I find interesting or useful.
Thursday, 20 January 2011
Cancel a fancy box close
A quick one since I couldn't actually find this anywhere in the api or documentation. If you want to cancel a user request to close a fancybox then all you have to do is return false from the callback assigned to onCleanup in the fancybox options. Annoyingly I worked this out by looking at the fancybox code but still managed to struggle with it for a while because the callback I inherited had another evaluated function that was causing a close. Oh well - got there in the end!
Labels:
fancybox cancel close,
Jquery
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment