mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Merge pull request #6257 from tk0miya/6244_broken_search
Fix #6244: html: Search function is broken with 3rd party themes
This commit is contained in:
commit
8742761160
1
CHANGES
1
CHANGES
@ -29,6 +29,7 @@ Bugs fixed
|
||||
references
|
||||
* #6245: circular import error on importing SerializingHTMLBuilder
|
||||
* #6243: LaTeX: 'releasename' setting for latex_elements is ignored
|
||||
* #6244: html: Search function is broken with 3rd party themes
|
||||
|
||||
Testing
|
||||
--------
|
||||
|
@ -75,6 +75,16 @@ var Search = {
|
||||
}
|
||||
},
|
||||
|
||||
loadIndex : function(url) {
|
||||
$.ajax({type: "GET", url: url, data: null,
|
||||
dataType: "script", cache: true,
|
||||
complete: function(jqxhr, textstatus) {
|
||||
if (textstatus != "success") {
|
||||
document.getElementById("searchindexloader").src = url;
|
||||
}
|
||||
}});
|
||||
},
|
||||
|
||||
setIndex : function(index) {
|
||||
var q;
|
||||
this._index = index;
|
||||
|
Loading…
Reference in New Issue
Block a user