Commit 76899920 authored by Traboulsi's avatar Traboulsi
Browse files

Update public/js/paperfilter.js

parent c98d1cbb
Pipeline #8734 passed with stage
in 10 seconds
...@@ -143,7 +143,7 @@ function filter(year){ ...@@ -143,7 +143,7 @@ function filter(year){
document.getElementById("filter2020").innerHTML = "2020" document.getElementById("filter2020").innerHTML = "2020"
document.getElementById("filter2022").innerHTML = "2022 (" + count +")" document.getElementById("filter2022").innerHTML = "2022 (" + count +")"
count = 0 count = 0
}/*else if (year == "All"){ }else if (year == "All"){
for (var j = 0; j < jsonContent.length; j++) { for (var j = 0; j < jsonContent.length; j++) {
addpaper(jsonContent[j]); addpaper(jsonContent[j]);
} }
...@@ -164,7 +164,7 @@ function filter(year){ ...@@ -164,7 +164,7 @@ function filter(year){
document.getElementById("filter2020").innerHTML = "2020" document.getElementById("filter2020").innerHTML = "2020"
document.getElementById("filterall").innerHTML = "All (" + count +")" document.getElementById("filterall").innerHTML = "All (" + count +")"
count = 0 count = 0
}*/ }
if (year == "2020") { if (year == "2020") {
...@@ -200,6 +200,13 @@ function filter(year){ ...@@ -200,6 +200,13 @@ function filter(year){
state2021 = 0 state2021 = 0
state2022 = 0 state2022 = 0
state2023 = 1 state2023 = 1
} else if (year == "All"){
state2019 = 0
state2020 = 0
state2021 = 0
state2022 = 0
state2023 = 0
stateall=1
} }
} else if (state == 1) { } else if (state == 1) {
......
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