mirror of https://github.com/kiwix/libkiwix.git
bug fix for loader
This commit is contained in:
parent
ad7a63a471
commit
bce922ab89
|
@ -293,10 +293,6 @@
|
||||||
document.querySelectorAll('.filter').forEach(filter => {
|
document.querySelectorAll('.filter').forEach(filter => {
|
||||||
filter.addEventListener('change', () => {resetAndFilter(filter.name, filter.value)});
|
filter.addEventListener('change', () => {resetAndFilter(filter.name, filter.value)});
|
||||||
});
|
});
|
||||||
filterTypes.forEach((filter) => {
|
|
||||||
const filterTag = document.getElementsByName(filter)[0];
|
|
||||||
filterTag.addEventListener('change', () => {resetAndFilter(filterTag.name, filterTag.value)});
|
|
||||||
});
|
|
||||||
if (filters) {
|
if (filters) {
|
||||||
window.history.pushState({}, null, `${window.location.href.split('?')[0]}?${params.toString()}`);
|
window.history.pushState({}, null, `${window.location.href.split('?')[0]}?${params.toString()}`);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue