From 118c3b82a95df96777c3daeee23e9b72d6ef572c Mon Sep 17 00:00:00 2001
From: TonyFord <tonyford@strategy-investor.de>
Date: Tue, 10 May 2022 12:59:48 +0200
Subject: [PATCH] bugfix

---
 html/assets/js/script.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/html/assets/js/script.js b/html/assets/js/script.js
index eea7a5f..52dd0aa 100644
--- a/html/assets/js/script.js
+++ b/html/assets/js/script.js
@@ -267,7 +267,7 @@ function calculatePartien(saison,date){
 
 }
 
-var st=0;
+var St=0;
 
 function grpPartien( date,steps,saison,runde,spieltag,Bg ){
 
@@ -300,11 +300,11 @@ function grpPartien( date,steps,saison,runde,spieltag,Bg ){
           var dt=new Date(ergebnis.T).toJSON().slice(0,10);
           var st=STAT_SAISON.filter( (a) => ( a.MID == ergebnis.MID )).length == 12;
           ergebnis['partie']=partie;
-          if( st != -1 ) st=spieltag;
+          if( St != -1 ) St=spieltag;
         } else {
-          if( st > 0 ){
-            window.location.href='#st'+st;
-            st=-1;
+          if( St > 0 ){
+            window.location.href='#st'+St;
+            St=-1;
           }
           var th='-'; var ta='-'; var dt='<i>'+new Date(date+DAY*steps).toJSON().slice(0,10)+'</i> <sup>'+(steps+LIGASPIELTAG)+'</sup>'; var st=false; done=false; var match='';
         }
-- 
GitLab