Commit 358310b1 authored by Traboulsi's avatar Traboulsi
Browse files

Update public/js/paperfilter.js

parent a2ce773e
Pipeline #8771 passed with stage
in 9 seconds
......@@ -51,6 +51,12 @@ function filter(year){
document.getElementById("filterall").style.backgroundColor = "lightgrey"
document.getElementById("filter2022").innerHTML = "2022"
//document.getElementById("filterall").innerHTML = "All"
if(lang_setting == "1" )
{
document.getElementById("filterall").innerHTML = "All"
}else if(lang_setting == "2" ){
document.getElementById("filterall").innerHTML = "Alles"
}
document.getElementById("filter2023").innerHTML = "2023"
document.getElementById("filter2020").innerHTML = "2020 (" + count +")"
document.getElementById("filter2021").innerHTML = "2021"
......@@ -76,6 +82,12 @@ function filter(year){
document.getElementById("filter2023").style.backgroundColor = "lightgrey"
document.getElementById("filter2023").innerHTML = "2023"
//document.getElementById("filterall").innerHTML = "All"
if(lang_setting == "1" )
{
document.getElementById("filterall").innerHTML = "All"
}else if(lang_setting == "2" ){
document.getElementById("filterall").innerHTML = "Alles"
}
document.getElementById("filter2022").innerHTML = "2022"
document.getElementById("filter2021").innerHTML = "2021 (" + count +")"
document.getElementById("filter2020").innerHTML = "2020"
......@@ -105,6 +117,12 @@ function filter(year){
document.getElementById("filter2021").innerHTML = "2021"
document.getElementById("filter2020").innerHTML = "2020"
//document.getElementById("filterall").innerHTML = "All"
if(lang_setting == "1" )
{
document.getElementById("filterall").innerHTML = "All"
}else if(lang_setting == "2" ){
document.getElementById("filterall").innerHTML = "Alles"
}
count = 0
} else if (year == "2023"){
for (var j = 0; j < jsonContent.length; j++) {
......@@ -130,6 +148,12 @@ function filter(year){
document.getElementById("filter2021").innerHTML = "2021"
document.getElementById("filter2020").innerHTML = "2020"
//document.getElementById("filterall").innerHTML = "All"
if(lang_setting == "1" )
{
document.getElementById("filterall").innerHTML = "All"
}else if(lang_setting == "2" ){
document.getElementById("filterall").innerHTML = "Alles"
}
count = 0
} else if (year == "2022"){
for (var j = 0; j < jsonContent.length; j++) {
......@@ -151,6 +175,12 @@ function filter(year){
document.getElementById("filter2022").style.backgroundColor = "grey"
document.getElementById("filter2019").innerHTML = "2019"
// document.getElementById("filterall").innerHTML = "All"
if(lang_setting == "1" )
{
document.getElementById("filterall").innerHTML = "All"
}else if(lang_setting == "2" ){
document.getElementById("filterall").innerHTML = "Alles"
}
document.getElementById("filter2021").innerHTML = "2021"
document.getElementById("filter2023").innerHTML = "2023"
document.getElementById("filter2020").innerHTML = "2020"
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment