Commit 6d9c2f05 authored by Traboulsi's avatar Traboulsi
Browse files

Update public/js/paperfilter.js

parent 358310b1
Pipeline #8772 passed with stage
in 9 seconds
......@@ -6,6 +6,7 @@ var state2019 = 0
var stateall = 0
var state = 0
var count = 0
var lang_new= lang_setting
function filter(year){
......@@ -51,10 +52,10 @@ function filter(year){
document.getElementById("filterall").style.backgroundColor = "lightgrey"
document.getElementById("filter2022").innerHTML = "2022"
//document.getElementById("filterall").innerHTML = "All"
if(lang_setting == "1" )
if(lang_new == "1" )
{
document.getElementById("filterall").innerHTML = "All"
}else if(lang_setting == "2" ){
}else if(lang_new == "2" ){
document.getElementById("filterall").innerHTML = "Alles"
}
document.getElementById("filter2023").innerHTML = "2023"
......@@ -82,10 +83,10 @@ function filter(year){
document.getElementById("filter2023").style.backgroundColor = "lightgrey"
document.getElementById("filter2023").innerHTML = "2023"
//document.getElementById("filterall").innerHTML = "All"
if(lang_setting == "1" )
if(lang_new == "1" )
{
document.getElementById("filterall").innerHTML = "All"
}else if(lang_setting == "2" ){
}else if(lang_new == "2" ){
document.getElementById("filterall").innerHTML = "Alles"
}
document.getElementById("filter2022").innerHTML = "2022"
......@@ -117,10 +118,10 @@ function filter(year){
document.getElementById("filter2021").innerHTML = "2021"
document.getElementById("filter2020").innerHTML = "2020"
//document.getElementById("filterall").innerHTML = "All"
if(lang_setting == "1" )
if(lang_new == "1" )
{
document.getElementById("filterall").innerHTML = "All"
}else if(lang_setting == "2" ){
}else if(lang_new == "2" ){
document.getElementById("filterall").innerHTML = "Alles"
}
count = 0
......@@ -148,10 +149,10 @@ function filter(year){
document.getElementById("filter2021").innerHTML = "2021"
document.getElementById("filter2020").innerHTML = "2020"
//document.getElementById("filterall").innerHTML = "All"
if(lang_setting == "1" )
if(lang_new == "1" )
{
document.getElementById("filterall").innerHTML = "All"
}else if(lang_setting == "2" ){
}else if(lang_new == "2" ){
document.getElementById("filterall").innerHTML = "Alles"
}
count = 0
......@@ -175,10 +176,10 @@ function filter(year){
document.getElementById("filter2022").style.backgroundColor = "grey"
document.getElementById("filter2019").innerHTML = "2019"
// document.getElementById("filterall").innerHTML = "All"
if(lang_setting == "1" )
if(lang_new == "1" )
{
document.getElementById("filterall").innerHTML = "All"
}else if(lang_setting == "2" ){
}else if(lang_new == "2" ){
document.getElementById("filterall").innerHTML = "Alles"
}
document.getElementById("filter2021").innerHTML = "2021"
......@@ -320,10 +321,10 @@ function filter(year){
document.getElementById("filter2020").innerHTML = "2020"
document.getElementById("filter2022").innerHTML = "2022"
document.getElementById("filter2023").innerHTML = "2023"
if(lang_setting == "1" )
if(lang_new == "1" )
{
document.getElementById("filterall").innerHTML = "All"
}else if(lang_setting == "2" ){
}else if(lang_new == "2" ){
document.getElementById("filterall").innerHTML = "Alles"
}
}
......
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