From c2c2bbefb3cf6c5f895d217c36849149b140bdff Mon Sep 17 00:00:00 2001 From: Razmig Sarkissian Date: Fri, 4 Aug 2023 11:55:46 +0200 Subject: [PATCH] fix scroll --- scores/templates/scores/brackets.html | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/scores/templates/scores/brackets.html b/scores/templates/scores/brackets.html index f5a5fd7..1821e50 100644 --- a/scores/templates/scores/brackets.html +++ b/scores/templates/scores/brackets.html @@ -47,14 +47,8 @@ easing : "linear", complete : function() { setTimeout(function(){ - window.location.reload(); - top.location.reload(); - - window.onbeforeunload = function () { - window.scrollTo(0, 0); -} - - + $(window).scrollTop(0); + window.location.reload(); }, iInterval); } });