fancyapps/fancyBox — Issue #88: Need afterClose not to fire when transitioning to another fancybox
Author: Schepp
Created: 2012-01-06 16:05:31+00:00
State: open

I have a situation here where I have a user dashboard opening in a fancybox. From inside that the user can go to a fancybox where he can change passwords. When the user closes that window I want the dahboard to reappear so I defined something like:

```javascript
'beforeClose': function(){
dashboard_show();
return false;
}
```

But now I get problems, when the user makes an error in the change password window and I display yet another fancybox with the error message. Displaying the error message also triggers beforeClose. What I would need is a callback that really only triggers, when the user hmself initiates a close action (i.e. clicking on the close button or ESC).