From f03d391e2b1bce464e84703ef3ca8126ea3e6ec2 Mon Sep 17 00:00:00 2001 From: dingguodong Date: Thu, 23 May 2024 20:42:03 +0800 Subject: [PATCH] * Use callback to call the js function. --- module/system/control.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/module/system/control.php b/module/system/control.php index 8a14af8dd2..0938fccf51 100644 --- a/module/system/control.php +++ b/module/system/control.php @@ -236,7 +236,7 @@ class system extends control $this->loadModel('action')->create('system', 0, 'restoreBackup', '', $backupName); - $this->send($result + array('load' => true)); + $this->send($result + array('load' => true, 'callback' => "restoreInProcess('$backupName')")); } /** @@ -254,7 +254,7 @@ class system extends control $this->loadModel('action')->create('system', 0, 'deleteBackup', '', $backupName); - $this->send($result + array('load' => true)); + $this->send($result + array('load' => true, 'callback' => "deleteInProcess('$backupName')")); } /**