public function init()
    {
        $this->action = new JsExpression(<<<JS
function (dialog) {
    dialog.close();
}
JS
);
        parent::init();
    }
    public function init()
    {
        $this->action = new JsExpression(<<<JS
function (dialog) {
    dialog.\$modalBody.find('form').first().submit()
    var button = dialog.getButton('dialog-btn-submit');
    button.hide();
    \$.pjax.reload({container: "#{$this->pjaxId}"});
}
JS
);
        parent::init();
    }