Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Fancybox overlay error #1042

Closed
averichev opened this issue Jun 18, 2015 · 1 comment
Closed

Fancybox overlay error #1042

averichev opened this issue Jun 18, 2015 · 1 comment

Comments

@averichev
Copy link

I want show fancybox when calling ajax request

But if i open overlay before open fancybox - i have errror _"this.el is undefined"_ on line 1818
this.el.addClass('fancybox-lock');

$(document).on('click', '[data-fancy]', function (e) {
        e.preventDefault();

        // show loading and overlay
        //$.fancybox.helpers.overlay.open(); // this line causes an error
        $.fancybox.showLoading();

        // post ajax request
        $.post('/ajax/', {}, function (r) {
            // open fancybox with ajax result
            $.fancybox.open(r);
        });
    })

what is the problem

please, reply

or show example of solving my problem (fancybox with post request )

@fancyapps
Copy link
Owner

I have no idea what could cause this. Anyway, try upgrading to v3.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants