From 3d1709e314a2b52e1bf537339e930ee129a06058 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Mon, 25 Dec 2023 09:22:16 +0800 Subject: [PATCH] * Fix bug #42381. --- module/story/ui/create.html.php | 2 +- module/tree/control.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/module/story/ui/create.html.php b/module/story/ui/create.html.php index 19e7cc5400..974a8ab681 100644 --- a/module/story/ui/create.html.php +++ b/module/story/ui/create.html.php @@ -88,7 +88,7 @@ formPanel ), a ( - setData(array('on' => 'click', 'call' => 'loadProductModules', 'params' => $productID)), + set('onclick', "loadProductModules({$productID})"), icon('refresh') ) ) : null diff --git a/module/tree/control.php b/module/tree/control.php index ec1d69940e..76762d2f17 100644 --- a/module/tree/control.php +++ b/module/tree/control.php @@ -237,6 +237,7 @@ class tree extends control if(dao::isError()) return $this->sendError(dao::getError()); if($this->viewType == 'json') return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'idList' => $moduleIDList)); + if(helper::isAjaxRequest('modal')) return $this->send(array('result' => 'success', 'message' => $this->lang->saveSuccess, 'closeModal' => true)); return $this->sendSuccess(array('load' => true)); } }