From 1c23d6d2a56224fd1f779a28e2ebf642e6011a6c Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Sat, 25 Nov 2017 15:26:56 +0100 Subject: [PATCH] Fixed comment --- scripts/Actions/Forum.ts | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/Actions/Forum.ts b/scripts/Actions/Forum.ts index ff73582e..f4f52f1f 100644 --- a/scripts/Actions/Forum.ts +++ b/scripts/Actions/Forum.ts @@ -43,18 +43,17 @@ export function savePost(arn: AnimeNotifier, element: HTMLElement) { .catch(err => arn.statusMessage.showError(err)) } -// Create thread +// Delete post export function deletePost(arn: AnimeNotifier, element: HTMLElement) { - - if (!confirm(`Are you sure you want to delete this Post?`)) { + if(!confirm(`Are you sure you want to delete this Post?`)) { return } let endpoint = arn.findAPIEndpoint(element) arn.post(endpoint + "/delete", "") - .then(() => arn.reloadContent()) - .catch(err => arn.statusMessage.showError(err)) + .then(() => arn.reloadContent()) + .catch(err => arn.statusMessage.showError(err)) } // Forum reply