Fix to handle pjax requests
Before fix pjax were handled like modal requests and got send back a JSON for modals. Now only ajax requests without isPjax are handled like modal requests.
Before fix pjax were handled like modal requests and got send back a JSON for modals. Now only ajax requests without isPjax are handled like modal requests.