NXP-15346: add onClosed action property to fancybox