enabling quote length filters when quote mode is enabled

This commit is contained in:
Miodec 2020-12-25 16:09:32 +00:00
parent 37867dcde7
commit 1ec0389b40

View file

@ -1310,6 +1310,10 @@ $(".pageAccount .topFilters .button.currentConfigFilter").click((e) => {
config.resultFilters.time[config.time] = true;
} else if (config.mode === "words") {
config.resultFilters.words[config.words] = true;
} else if (config.mode === "quote"){
Object.keys(config.resultFilters.quoteLength).forEach((ql) => {
config.resultFilters.quoteLength[ql] = true;
});
}
if (config.punctuation) {
config.resultFilters.punctuation.on = true;