Thursday, 12 September 2019

Reload ajax magnific pop-up

I have a magnific pop-up like

$.magnificPopup.open({
            items: {},
            type: 'ajax',
            ajax: {
                settings: {
                    url: some_url,
                    dataType: 'json',
                    method: 'POST',
                    data: params
                }
            },
            key: 'basket_popup'})

first time it works fine. But assume, I have params like {'zz':'mm'}. If I call this function second time and pass new params, I see that in network magnific sends old request. How to avoid it (except calling magnificPopup.close())?



from Reload ajax magnific pop-up

No comments:

Post a Comment