Reworking of projects page
This commit is contained in:
11
src/static/js/filter_projects.js
Normal file
11
src/static/js/filter_projects.js
Normal file
@@ -0,0 +1,11 @@
|
||||
window.onload = function () {
|
||||
var project_filter = document.getElementById("filter_category");
|
||||
project_filter.onchange = function () {
|
||||
if (project_filter.value == 'all') {
|
||||
window.location.href = '/projects';
|
||||
}
|
||||
else {
|
||||
window.location.href = '/projects/category/' + project_filter.value;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user