File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1218,7 +1218,7 @@ function getSearchElement() {
1218
1218
}
1219
1219
dst = dst [ 0 ] ;
1220
1220
if ( window . location . pathname === dst . pathname ) {
1221
- addClass ( document . getElementById ( "search" ) , "hidden" ) ;
1221
+ addClass ( getSearchElement ( ) , "hidden" ) ;
1222
1222
removeClass ( main , "hidden" ) ;
1223
1223
document . location . href = dst . href ;
1224
1224
}
@@ -2454,7 +2454,7 @@ function getSearchElement() {
2454
2454
function putBackSearch ( search_input ) {
2455
2455
if ( search_input . value !== "" ) {
2456
2456
addClass ( main , "hidden" ) ;
2457
- removeClass ( document . getElementById ( "search" ) , "hidden" ) ;
2457
+ removeClass ( getSearchElement ( ) , "hidden" ) ;
2458
2458
if ( browserSupportsHistoryApi ( ) ) {
2459
2459
history . replaceState ( search_input . value ,
2460
2460
"" ,
You can’t perform that action at this time.
0 commit comments