I have a fancybox script like this
$.fancybox.open({ href : '<?= site_url('sell_split/popup_qty/') ?>'+url_param, type : 'ajax', afterShow: popup_focus_qty, afterClose: console.log('test') });
As you can see, there is an afterClose
event. But it seems that when I try to execute this script, the afterClose
event occurs first and then the GET
process.
![enter image description here](https://fooobar.com//img/ab92336a6a6620d7c453fff1d01cf1ca.png)
This is not what I want. What I want to do is the afterClose
event occurs if the visitor closes the FancyBox Window.
Is this a bug from the FancyBox plugin or is the code incorrect?
source share