We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 7b637b7 + de3a291 commit bb1bd88Copy full SHA for bb1bd88
src/librustdoc/html/static/main.js
@@ -119,8 +119,7 @@
119
map(function(s) {
120
var pair = s.split("=");
121
params[decodeURIComponent(pair[0])] =
122
- typeof pair[1] === "undefined" ?
123
- null : decodeURIComponent(pair[1]);
+ typeof pair[1] === "undefined" ? null : decodeURIComponent(pair[1]);
124
});
125
return params;
126
}
@@ -1822,6 +1821,14 @@
1822
1821
1823
};
1824
+
1825
+ var params = getQueryStringParams();
1826
+ if (params && params.search) {
1827
+ addClass(document.getElementById("main"), "hidden");
1828
+ var search = document.getElementById("search");
1829
+ removeClass(search, "hidden");
1830
+ search.innerHTML = '<h3 style="text-align: center;">Loading search results...</h3>';
1831
+ }
1832
}());
1833
1834
// Sets the focus on the search bar at the top of the page
0 commit comments