Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Display fancybox loading icon

When I use fancybox for iframe, the loading icon isn't displayed while fancybox is loaded...

How can I fix this problem?

Thanks in advance.

like image 552
King Julien Avatar asked Dec 28 '22 13:12

King Julien


1 Answers

For FancyBox 2 showing loader with overlay

To show

$.fancybox.showLoading();
$.fancybox.helpers.overlay.open({parent: $('body'), closeClick : false});

To hide

$.fancybox.hideLoading();
$.fancybox.helpers.overlay.close();
like image 113
Kunal Panchal Avatar answered Dec 31 '22 06:12

Kunal Panchal