Sameera Liyanage
Sameera Liyanage

Reputation: 1380

Magnific Popup Callback when close

I'm creating popup using method http://dimsemenov.com/plugins/magnific-popup/documentation.html#api -> Public methods.

    $.magnificPopup.open({
            items: {
                src: '#createTableBooking', 
                type: 'inline'
            }
    });

I want to call function when this exact popup close.

Upvotes: 2

Views: 1387

Answers (1)

Jennis Vaishnav
Jennis Vaishnav

Reputation: 341

Here's the JSFiddle for what u needed JSFiddle. Here in the code you can use your own div id like you have used in your case, in the src field. Your code was missing the extra function call which would be made when we close the popup.

Here in the code, a function call is made before closing the popup as you needed. Hope this helps.

Upvotes: 1

Related Questions