Skip to content

Commit c38e9ac

Browse files
committed
no query, no resluts , message
1 parent 12dab29 commit c38e9ac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/_static/searchtools.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,10 @@ var Search = {
342342
else {
343343
Search.stopPulse();
344344
Search.title.text(_('Search Results'));
345-
if (!resultCount)
345+
if (query === '') {
346+
Search.status.text(_('No query, no results.'));
347+
}
348+
else if (!resultCount)
346349
Search.status.text(_('Your search did not match any documents. Please make sure that all words are spelled correctly. Searching for multiple words only shows matches that contain all words.'));
347350
else
348351
Search.status.text(_('Found %s page(s) matching the search query.').replace('%s', resultCount));

0 commit comments

Comments
 (0)