Skip to content

Commit

Permalink
fixup! Extract setNoResultsContent() from checkAndInjectEmptyMessage()
Browse files Browse the repository at this point in the history
  • Loading branch information
juuz0 committed Jun 25, 2022
1 parent ca23b02 commit 1696371
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion static/skin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,8 @@
const kiwixHomeBody = document.querySelector('.kiwixHomeBody');
const divTag = document.createElement('div');
divTag.setAttribute('class', 'noResults');
divTag.innerHTML = `No result. Would you like to <a href="/?lang=">reset filter</a>?`;
const resetLink = window.location.pathname + '?lang=';
divTag.innerHTML = `No result. Would you like to <a href="${resetLink}">reset filter</a>?`;
kiwixHomeBody.append(divTag);
kiwixHomeBody.setAttribute('style', 'display: flex; justify-content: center; align-items: center');
loader.setAttribute('style', 'position: absolute; top: 50%');
Expand Down

0 comments on commit 1696371

Please sign in to comment.