mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
fix: A wrong conditoin check break search feature on first page that is usually index.rst. This issue was introduced at 46d0815, cfbdd84.
This commit is contained in:
parent
5def0cc353
commit
445bb5daec
2
CHANGES
2
CHANGES
@ -16,6 +16,8 @@ Bugs fixed
|
||||
|
||||
* #1265: Fix i18n: crash when translating section name that is pointed from
|
||||
named target.
|
||||
* A wrong conditoin check break search feature on first page that is usually
|
||||
index.rst. This issue was introduced at 1.2b1
|
||||
|
||||
|
||||
Release 1.2 beta2 (released Sep 17, 2013)
|
||||
|
@ -370,7 +370,7 @@ var Search = {
|
||||
for (i = 0; i < searchterms.length; i++) {
|
||||
var word = searchterms[i];
|
||||
// no match but word was a required one
|
||||
if (!(files = terms[word]))
|
||||
if ((files = terms[word]) === undefined)
|
||||
break;
|
||||
if (files.length === undefined) {
|
||||
files = [files];
|
||||
|
Loading…
Reference in New Issue
Block a user