We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf148a7 commit 1d28083Copy full SHA for 1d28083
src/librustdoc/html/static/main.js
@@ -1218,7 +1218,7 @@ function getSearchElement() {
1218
}
1219
dst = dst[0];
1220
if (window.location.pathname === dst.pathname) {
1221
- addClass(document.getElementById("search"), "hidden");
+ addClass(getSearchElement(), "hidden");
1222
removeClass(main, "hidden");
1223
document.location.href = dst.href;
1224
@@ -2454,7 +2454,7 @@ function getSearchElement() {
2454
function putBackSearch(search_input) {
2455
if (search_input.value !== "") {
2456
addClass(main, "hidden");
2457
- removeClass(document.getElementById("search"), "hidden");
+ removeClass(getSearchElement(), "hidden");
2458
if (browserSupportsHistoryApi()) {
2459
history.replaceState(search_input.value,
2460
"",
0 commit comments