File tree 1 file changed +3
-6
lines changed
src/librustdoc/html/static
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -92,6 +92,7 @@ function defocusSearchBar() {
92
92
var disableShortcuts = getCurrentValue ( "rustdoc-disable-shortcuts" ) === "true" ;
93
93
var search_input = getSearchInput ( ) ;
94
94
var searchTimeout = null ;
95
+ var toggleAllDocsId = "toggle-all-docs" ;
95
96
96
97
// On the search screen, so you remain on the last tab you opened.
97
98
//
@@ -2113,12 +2114,8 @@ function defocusSearchBar() {
2113
2114
}
2114
2115
}
2115
2116
2116
- function getToggleAllDocsElement ( ) {
2117
- return document . getElementById ( "toggle-all-docs" ) ;
2118
- }
2119
-
2120
2117
function toggleAllDocs ( pageId , fromAutoCollapse ) {
2121
- var innerToggle = getToggleAllDocsElement ( ) ;
2118
+ var innerToggle = document . getElementById ( toggleAllDocsId ) ;
2122
2119
if ( ! innerToggle ) {
2123
2120
return ;
2124
2121
}
@@ -2360,7 +2357,7 @@ function defocusSearchBar() {
2360
2357
}
2361
2358
2362
2359
( function ( ) {
2363
- var toggles = document . getElementById ( "toggle-all-docs" ) ;
2360
+ var toggles = document . getElementById ( toggleAllDocsId ) ;
2364
2361
if ( toggles ) {
2365
2362
toggles . onclick = toggleAllDocs ;
2366
2363
}
You can’t perform that action at this time.
0 commit comments