Skip to content

Commit

Permalink
assitant filtering
Browse files Browse the repository at this point in the history
  • Loading branch information
hohMiyazawa committed Nov 17, 2021
1 parent f06d432 commit 9faa1d4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/addMoreStats.js
Original file line number Diff line number Diff line change
Expand Up @@ -2182,9 +2182,9 @@ function addMoreStats(){
else{
mangaStaff.innerText = "";
story_filter = createCheckbox(mangaStaff);
create("span",false,"Story",mangaStaff,"margin-right:5px;");
create("span",false,translate("$role_Story",null,"Story"),mangaStaff,"margin-right:5px;");
art_filter = createCheckbox(mangaStaff);
create("span",false,"Art",mangaStaff,"margin-right:5px;");
create("span",false,translate("$role_Art",null,"Art"),mangaStaff,"margin-right:5px;");
assistant_filter = createCheckbox(mangaStaff);
create("span",false,"Assistants",mangaStaff,"margin-right:5px;");
translator_filter = createCheckbox(mangaStaff);
Expand Down Expand Up @@ -2217,10 +2217,10 @@ function addMoreStats(){
&& !art_filter.checked
&& (
staff.roles.every(role => role.toLowerCase().match(/art|story/))
|| !staff.roles.some(role => role.toLowerCase().match(/translator|lettering|touch-up|assistant/))
|| !staff.roles.some(role => role.toLowerCase().match(/translator|lettering|touch-up|assistant|assistance/))
)
)
|| (!assistant_filter.checked && staff.roles.every(role => role.toLowerCase().match(/assistant/)))
|| (!assistant_filter.checked && staff.roles.every(role => role.toLowerCase().match(/assistant|assistance/)))
|| (!translator_filter.checked && staff.roles.some(role => role.toLowerCase().match(/translator|lettering|touch-up/)))
){
return
Expand Down

0 comments on commit 9faa1d4

Please sign in to comment.