From 325a9ae8c7baefd9eabe1c3bd091690e88622bd7 Mon Sep 17 00:00:00 2001
From: Traboulsi <salam.traboulsi@hft-stuttgart.de>
Date: Tue, 24 Oct 2023 09:51:51 +0000
Subject: [PATCH] Update public/js/paperfilter.js

---
 public/js/paperfilter.js | 12 +++---------
 1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/public/js/paperfilter.js b/public/js/paperfilter.js
index 821a8de..f8d865b 100644
--- a/public/js/paperfilter.js
+++ b/public/js/paperfilter.js
@@ -27,10 +27,10 @@ function filter(year){
     }
 
     
+
     if (state == 0){
         console.log("filter")
         // Start loading/adding the paper content to the page here .....
-             
         if (year == "2020"){
             for (var j = 0; j < jsonContent.length; j++) {
                         var filterString = jsonContent[j].item.conference.date.toString()
@@ -146,14 +146,7 @@ function filter(year){
 				document.getElementById("filter2022").innerHTML = "2022 (" + count +")"				
                 count = 0
         }else if (year == "All"){
-          for (var j = 0; j < jsonContent.length; j++) {
-                addpaper(jsonContent[j]);
-            }
-               state = 1
-
-                
-                //Do something
-            }   
+                count += 1
                 document.getElementById("filterall").style.backgroundColor = "grey"
                 document.getElementById("filter2019").style.backgroundColor = "lightgrey"
                 document.getElementById("filter2021").style.backgroundColor = "lightgrey"
@@ -169,6 +162,7 @@ function filter(year){
         }
 
 
+
         if (year == "2020") {
             state2020 = 1
             state2021 = 0
-- 
GitLab