From d88bdd3ebff14936dea97cc66df317244314767a Mon Sep 17 00:00:00 2001 From: Manan Jethwani Date: Wed, 23 Jun 2021 14:15:22 +0530 Subject: [PATCH] corrected filter on no results --- static/skin/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/static/skin/index.js b/static/skin/index.js index 21a140ce2..382ca0c26 100644 --- a/static/skin/index.js +++ b/static/skin/index.js @@ -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) || ''}); };