diff --git a/static/skin/index.js b/static/skin/index.js index 2b5a4149d..c33c47d93 100644 --- a/static/skin/index.js +++ b/static/skin/index.js @@ -277,23 +277,9 @@ setTimeout(() => { const divTag = document.createElement('div'); divTag.setAttribute('class', 'noResults'); - divTag.innerHTML = `No result. Would you like to reset filter?`; + divTag.innerHTML = `No result. Would you like to reset filter?`; kiwixHomeBody.append(divTag); kiwixHomeBody.setAttribute('style', 'display: flex; justify-content: center; align-items: center'); - divTag.getElementsByTagName('a')[0].onclick = (event) => { - event.preventDefault(); - window.history.pushState({}, null, `?lang=`); - setCookie(filterCookieName, 'lang='); - resetAndFilter(); - document.querySelectorAll('.filter').forEach(filter => { - filter.value = params.get(filter.name) || ''; - if (filter.value) { - filter.style = 'background-color: #858585; color: #fff'; - } else { - filter.style = 'background-color: #ffffff; color: black'; - } - }) - }; loader.setAttribute('style', 'position: absolute; top: 50%'); }, 300); } diff --git a/test/server.cpp b/test/server.cpp index 992ffb9c5..a0c22362b 100644 --- a/test/server.cpp +++ b/test/server.cpp @@ -184,7 +184,7 @@ R"EXPECTEDRESULT( src="/ROOT/skin/jquery-ui/external/jquery/jquery.js?cache src: url("/ROOT/skin/fonts/Roboto.ttf?cacheid=84d10248") format("truetype"); - + )EXPECTEDRESULT" }, {