OKyJIucT
7/16/2016 - 8:06 AM

pjax before send

pjax before send

<?php
    $this->registerJs('
                $(\'body\').on(\'pjax:beforeSend\', function (e) {
                    $(\'.preloader\').show();
                });
                $(\'body\').on(\'pjax:success\', function (e) {
                    $(\'.preloader\').hide();
                });
            ');
    ?>