src/widgets/DnsZoneEditWidget.php
public function registerClientScript()
    {
        $id = $this->pjaxOptions['id'];
        $url = Json::encode($this->buildUrl());
        $js = "
            $.pjax({
                url: $url,
                push: false,
                replace: false,
                container: '#$id',
            });
            $('#$id').on('pjax:error', function (event, xhr, textStatus, error, options) {
                $(this).text(xhr.responseText);
            });
        ";
        if ($this->clientScriptWrap instanceof Closure) {
            $js = call_user_func($this->clientScriptWrap, $js);
        }

        Yii::$app->view->registerJs($js);
    }
public function registerClientScript()
    {
        $id = $this->pjaxOptions['id'];
        $url = Json::encode($this->buildUrl());
        $js = "
            $.pjax({
                url: $url,
                push: false,
                replace: false,
                container: '#$id',
            });
            $('#$id').on('pjax:error', function (event, xhr, textStatus, error, options) {
                $(this).text(xhr.responseText);
            });
        ";
        if ($this->clientScriptWrap instanceof Closure) {
            $js = call_user_func($this->clientScriptWrap, $js);
        }

        Yii::$app->view->registerJs($js);
    }
public function registerClientScript ( ) { $ id = $ this -> pjaxOptions [ 'id' ] ; $ url = Json :: encode ( $ this -> buildUrl ( ) ) ; $ js = "
            $.pjax({
                url: $url,
                push: false,
                replace: false,
                container: '#$id',
            });
            $('#$id').on('pjax:error', function (event, xhr, textStatus, error, options) {
                $(this).text(xhr.responseText);
            });
        " ; if ( $ this -> clientScriptWrap instanceof Closure ) { $ js = call_user_func ( $ this -> clientScriptWrap , $ js ) ; } Yii :: $ app -> view -> registerJs ( $ js ) ; }
Registers JS.
Registers JS .