Added filters to maldiff

This commit is contained in:
2018-03-10 10:15:05 +01:00
parent 9626204f15
commit 0670e9f886
5 changed files with 27 additions and 8 deletions

View File

@ -17,4 +17,13 @@ export function newAnimeDiffIgnore(arn: AnimeNotifier, button: HTMLButtonElement
arn.reloadContent()
})
.catch(err => arn.statusMessage.showError(err))
}
// Filter anime on maldiff page
export function malDiffFilterAnime(arn: AnimeNotifier, input: HTMLInputElement) {
let year = arn.app.find("filter-year") as HTMLSelectElement
let status = arn.app.find("filter-status") as HTMLSelectElement
let type = arn.app.find("filter-type") as HTMLSelectElement
arn.app.load(`/editor/anime/maldiff/${year.value}/${status.value}/${type.value}`)
}