From 3bf2bd8f13a9423e9ab96c7fde29d3a763980c50 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 18 Feb 2022 11:42:28 +0200 Subject: [PATCH] cvb --- files/assets/js/comments_v.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/files/assets/js/comments_v.js b/files/assets/js/comments_v.js index 4b598f1b9..dd9ee8be8 100644 --- a/files/assets/js/comments_v.js +++ b/files/assets/js/comments_v.js @@ -335,7 +335,11 @@ function handle_blackjack_action(cid, action) { xhr.setRequestHeader('xhr', 'xhr'); xhr.onload = function() { - if (xhr.status == 200) location.reload(); + if (xhr.status == 200) + { + location.hash = `comment-${cid}`; + location.reload(); + } } xhr.send(form); } @@ -351,7 +355,11 @@ function handle_wordle_action(cid, guess) { xhr.setRequestHeader('xhr', 'xhr'); xhr.onload = function() { - if (xhr.status == 200) location.reload(); + if (xhr.status == 200) + { + location.hash = `comment-${cid}`; + location.reload(); + } } xhr.send(form); } \ No newline at end of file