Reload page after deleting user content
authorjoshuaruesweg <ruesweg@woltlab.com>
Mon, 9 Aug 2021 10:08:09 +0000 (12:08 +0200)
committerjoshuaruesweg <ruesweg@woltlab.com>
Mon, 9 Aug 2021 10:08:21 +0000 (12:08 +0200)
wcfsetup/install/files/acp/templates/userAdd.tpl

index c7d26f08cd6f41ca45eb889b5cfd2a24f0392f07..be211bc660f831a0a840e17b42ae68d24ead2772 100644 (file)
 
                                                        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");