From 98f58c5b56828bf11d6824bee8a32ce4b52316a8 Mon Sep 17 00:00:00 2001 From: Semenov Date: Fri, 26 May 2023 13:42:20 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=B0=D0=B2=D1=82=D0=BE=D1=80=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widgets/ActiveFormAjaxBackend.php | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/widgets/ActiveFormAjaxBackend.php b/src/widgets/ActiveFormAjaxBackend.php index 421939f..5bbbfee 100644 --- a/src/widgets/ActiveFormAjaxBackend.php +++ b/src/widgets/ActiveFormAjaxBackend.php @@ -58,6 +58,8 @@ class ActiveFormAjaxBackend extends ActiveForm implements IActiveFormHasFieldSet * @var bool */ public $enableClientValidation = true; + + public $clientSuccess = null; public function init() { @@ -71,11 +73,22 @@ public function init() $this->_initDynamicReload(); if (!$this->clientCallback) { + $successCallback = 'null'; + if ($this->clientSuccess) { + $successCallback = $this->clientSuccess; + } $this->clientCallback = new \yii\web\JsExpression(<<