We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f28df20 commit de3a291Copy full SHA for de3a291
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
}
@@ -1756,6 +1755,14 @@
1756
1755
1757
};
1758
+
1759
+ var params = getQueryStringParams();
1760
+ if (params && params.search) {
1761
+ addClass(document.getElementById("main"), "hidden");
1762
+ var search = document.getElementById("search");
1763
+ removeClass(search, "hidden");
1764
+ search.innerHTML = '<h3 style="text-align: center;">Loading search results...</h3>';
1765
+ }
1766
}());
1767
1768
// Sets the focus on the search bar at the top of the page
0 commit comments