summaryrefslogtreecommitdiff
path: root/sphinx/themes/basic/static/searchtools.js
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/themes/basic/static/searchtools.js')
-rw-r--r--sphinx/themes/basic/static/searchtools.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/sphinx/themes/basic/static/searchtools.js b/sphinx/themes/basic/static/searchtools.js
index 4c5826411..bdc270655 100644
--- a/sphinx/themes/basic/static/searchtools.js
+++ b/sphinx/themes/basic/static/searchtools.js
@@ -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;