mirror of
https://github.com/kiwix/libkiwix.git
synced 2025-09-08 14:48:25 -04:00
corrected filter on no results
This commit is contained in:
parent
5cfe34a5c2
commit
d88bdd3ebf
@ -126,6 +126,7 @@
|
|||||||
spanTag.getElementsByTagName('a')[0].onclick = (event) => {
|
spanTag.getElementsByTagName('a')[0].onclick = (event) => {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
window.history.pushState({}, null, `${window.location.href.split('?')[0]}?lang=`);
|
window.history.pushState({}, null, `${window.location.href.split('?')[0]}?lang=`);
|
||||||
|
setCookie(filterCookieName, 'lang=');
|
||||||
resetAndFilter();
|
resetAndFilter();
|
||||||
filterTypes.forEach(key => {document.getElementsByName(key)[0].value = params.get(key) || ''});
|
filterTypes.forEach(key => {document.getElementsByName(key)[0].value = params.get(key) || ''});
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user