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