Skip to content

Commit

Permalink
Merge pull request #6257 from tk0miya/6244_broken_search
Browse files Browse the repository at this point in the history
Fix #6244: html: Search function is broken with 3rd party themes
  • Loading branch information
tk0miya committed Apr 6, 2019
2 parents e239291 + a6e3170 commit 8742761
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES
Expand Up @@ -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
--------
Expand Down
10 changes: 10 additions & 0 deletions sphinx/themes/basic/static/searchtools.js
Expand Up @@ -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;
Expand Down

0 comments on commit 8742761

Please sign in to comment.