How to reload multiple pjax
Unfortunately Pjax by design doesn't allow multiple requests. In order to do those you have to nullify xhr
parameter in $.pjax
.
Basically like this:
$.pjax.reload({container:"#con_camp"});
$.pjax.xhr = null;
$.pjax.reload({container:"#con_camp1"});
$.pjax.xhr = null; // so that some next pjax request wont cancel this reload.
Try this.
$.pjax.reload({container: "#1-pjax", async:false});
$.pjax.reload({container: "#2-pjax", async:false});
You could just do
$.pjax.reload({container: '#container_1'}).done(function () {
$.pjax.reload({container: '#container_2'});
});