Skip to content

Commit

Permalink
Fix bug for empty search box on initial ZIM load #1083 (#1237)
Browse files Browse the repository at this point in the history
Signed off by @dan-niles
  • Loading branch information
dan-niles authored Mar 31, 2024
1 parent 9dc45e7 commit 8881e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion www/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const searchArticle = document.getElementById('searchArticles')
searchArticle.addEventListener('click', function () {
var prefix = document.getElementById('prefix').value;
// Do not initiate the same search if it is already in progress
if (appstate.search.prefix === prefix && !/^(cancelled|complete)$/.test(appstate.search.status)) return;
if (prefix !== '' && appstate.search.prefix === prefix && !/^(cancelled|complete)$/.test(appstate.search.status)) return;
document.getElementById('welcomeText').style.display = 'none';
document.querySelector('.kiwix-alert').style.display = 'none';
document.getElementById('searchingArticles').style.display = '';
Expand Down

0 comments on commit 8881e6a

Please sign in to comment.