From 40a0f1a5a58d137426824710bdd40abb7cdc7474 Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Fri, 4 Aug 2023 11:48:55 +0200 Subject: [PATCH] fix scroll --- scores/templates/scores/brackets.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scores/templates/scores/brackets.html b/scores/templates/scores/brackets.html index 298d2a6..f5a5fd7 100644 --- a/scores/templates/scores/brackets.html +++ b/scores/templates/scores/brackets.html @@ -48,6 +48,13 @@ complete : function() { setTimeout(function(){ window.location.reload(); + top.location.reload(); + + window.onbeforeunload = function () { + window.scrollTo(0, 0); +} + + }, iInterval); } });