add filter years

This commit is contained in:
Andrey Kuvshinov
2020-05-16 14:53:38 +03:00
parent 7c840c1388
commit 9fcca9efbe
6 changed files with 108 additions and 23 deletions

View File

@@ -182,4 +182,22 @@ function changepage(){
}
function changeyear(){
var e = document.getElementById("year_filter");
var curryear = e.options[e.selectedIndex].value;
yearurl = '/mybooks/gazeta/';
if (curryear !== 'all')
yearurl = yearurl + curryear + '/1';
location.href = yearurl;
return true;
}