V
V
Vlad Nevlad2018-10-18 11:40:27
Yii
Vlad Nevlad, 2018-10-18 11:40:27

Ajax loading modal window with pjax container doesn't work pjax.reload?

I load into the DOM with the help of .append () the modal window in which pjax is located. The action returns data via renderAjax.
When trying to do $.pjax.reload({container: SELECTOR_PJAX_CART_CONTAINER, async: false});
an empty response is returned and redirected to this URL. I tried to specify the $.pjax.reload url in the parameters, as I googled somewhere, but it did not help.
If the modal window is rendered immediately, then everything naturally works.
Tell me where to dig?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question