diff options
| author | Georg Brandl <georg@python.org> | 2014-01-19 10:29:06 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2014-01-19 10:29:06 +0100 |
| commit | 604ea875698727d3c1d83317130af0fff5bb5ab8 (patch) | |
| tree | 684532c3a43d6b614524aed24a9a179b9789c91d /sphinx/themes/basic | |
| parent | e2159e541dcc9b594aeed4a624df329c2f354545 (diff) | |
| download | sphinx-604ea875698727d3c1d83317130af0fff5bb5ab8.tar.gz | |
In search word highlighting, dont insist on having div.body.
Diffstat (limited to 'sphinx/themes/basic')
| -rw-r--r-- | sphinx/themes/basic/static/doctools.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sphinx/themes/basic/static/doctools.js b/sphinx/themes/basic/static/doctools.js index 8614442e..2036e5f5 100644 --- a/sphinx/themes/basic/static/doctools.js +++ b/sphinx/themes/basic/static/doctools.js @@ -168,6 +168,9 @@ var Documentation = { var terms = (params.highlight) ? params.highlight[0].split(/\s+/) : []; if (terms.length) { var body = $('div.body'); + if (!body.length) { + body = $('body'); + } window.setTimeout(function() { $.each(terms, function() { body.highlightText(this.toLowerCase(), 'highlighted'); |
