You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by as...@apache.org on 2019/11/27 19:10:30 UTC

[airflow-site] 17/30: Hot fix to get search working again

This is an automated email from the ASF dual-hosted git repository.

ash pushed a commit to branch asf-site
in repository https://gitbox.apache.org/repos/asf/airflow-site.git

commit 34294d42984aaaa228c1c6605bde55ab49643ccb
Author: Ash Berlin-Taylor <as...@firemirror.com>
AuthorDate: Mon Jun 24 16:49:25 2019 +0100

    Hot fix to get search working again
---
 1.10.3/_static/searchtools.js | 10 ++++++++++
 _static/searchtools.js        | 10 ++++++++++
 2 files changed, 20 insertions(+)

diff --git a/1.10.3/_static/searchtools.js b/1.10.3/_static/searchtools.js
index 4c58264..bdc2706 100644
--- a/1.10.3/_static/searchtools.js
+++ b/1.10.3/_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;
diff --git a/_static/searchtools.js b/_static/searchtools.js
index 4c58264..bdc2706 100644
--- a/_static/searchtools.js
+++ b/_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;