From a96b830d669e79e38b8062e217329fc901dd9401 Mon Sep 17 00:00:00 2001 From: joshuaruesweg Date: Mon, 9 Aug 2021 12:08:09 +0200 Subject: [PATCH] Reload page after deleting user content --- wcfsetup/install/files/acp/templates/userAdd.tpl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/acp/templates/userAdd.tpl b/wcfsetup/install/files/acp/templates/userAdd.tpl index c7d26f08cd..be211bc660 100644 --- a/wcfsetup/install/files/acp/templates/userAdd.tpl +++ b/wcfsetup/install/files/acp/templates/userAdd.tpl @@ -123,7 +123,9 @@ const deleteContent = document.querySelector(".jsDeleteContent"); if (deleteContent !== null) { - new AcpUserContentRemoveHandler(deleteContent, {@$user->userID}); + new AcpUserContentRemoveHandler(deleteContent, {@$user->userID}, (data) => { + window.location.reload(); + }); } const sendNewPassword = document.querySelector(".jsSendNewPassword"); -- 2.20.1