Closes #1642: fix only one search result appearing in Chrome.

This commit is contained in:
Georg Brandl 2015-01-25 16:07:18 +01:00
parent 14b4a56bec
commit 398a207b75
2 changed files with 2 additions and 1 deletions

View File

@ -29,6 +29,7 @@ Bugs fixed
* #1674: Do not crash if a module's ``__all__`` is not a list of strings. * #1674: Do not crash if a module's ``__all__`` is not a list of strings.
* #1673: Fix crashes with :confval:`nitpick_ignore` and ``:doc:`` references. * #1673: Fix crashes with :confval:`nitpick_ignore` and ``:doc:`` references.
* #1686: ifconfig directive doesn't care about default config values. * #1686: ifconfig directive doesn't care about default config values.
* #1642: Fix only one search result appearing in Chrome.
Release 1.2.3 (released Sep 1, 2014) Release 1.2.3 (released Sep 1, 2014)

View File

@ -259,7 +259,7 @@ var Search = {
dataType: "text", dataType: "text",
complete: function(jqxhr, textstatus) { complete: function(jqxhr, textstatus) {
var data = jqxhr.responseText; var data = jqxhr.responseText;
if (data !== '') { if (data !== '' && data !== undefined) {
listItem.append(Search.makeSearchSummary(data, searchterms, hlterms)); listItem.append(Search.makeSearchSummary(data, searchterms, hlterms));
} }
Search.output.append(listItem); Search.output.append(listItem);