Commit 94c71118 authored by Elias Asikainen's avatar Elias Asikainen
Browse files

semester filter working study docs

parent 41d66a98
......@@ -59,6 +59,10 @@ export default class studydocList {
});
this.filter[key] = filterValue;
});
this.filter.semester = {};
for (let i = 0; i < 6; i += 1) {
this.filter.semester[String(i)] = false;
}
}
static selectDocument(doc) {
this.doc = doc;
......@@ -155,7 +159,9 @@ export default class studydocList {
{ id: 6, name: '6. Semester' },
],
onchange: event => {
this.changeFilter('semester', this.semester, false);
this.semester = event.target.value;
this.changeFilter('semester', this.semester, true);
},
}),
m(Dropdown, {
......
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