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() {
12181218 }
12191219 dst = dst [ 0 ] ;
12201220 if ( window . location . pathname === dst . pathname ) {
1221- addClass ( document . getElementById ( "search" ) , "hidden" ) ;
1221+ addClass ( getSearchElement ( ) , "hidden" ) ;
12221222 removeClass ( main , "hidden" ) ;
12231223 document . location . href = dst . href ;
12241224 }
@@ -2454,7 +2454,7 @@ function getSearchElement() {
24542454 function putBackSearch ( search_input ) {
24552455 if ( search_input . value !== "" ) {
24562456 addClass ( main , "hidden" ) ;
2457- removeClass ( document . getElementById ( "search" ) , "hidden" ) ;
2457+ removeClass ( getSearchElement ( ) , "hidden" ) ;
24582458 if ( browserSupportsHistoryApi ( ) ) {
24592459 history . replaceState ( search_input . value ,
24602460 "" ,
You can’t perform that action at this time.
0 commit comments