File tree 1 file changed +6
-0
lines changed
src/librustdoc/html/static
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change 1623
1623
function toggleAllDocs ( ) {
1624
1624
var toggle = document . getElementById ( "toggle-all-docs" ) ;
1625
1625
if ( hasClass ( toggle , "will-expand" ) ) {
1626
+ updateLocalStorage ( "collapse" , "false" ) ;
1626
1627
removeClass ( toggle , "will-expand" ) ;
1627
1628
onEveryMatchingChild ( toggle , "inner" , function ( e ) {
1628
1629
e . innerHTML = labelForToggleButton ( false ) ;
1632
1633
collapseDocs ( e , "show" ) ;
1633
1634
} ) ;
1634
1635
} else {
1636
+ updateLocalStorage ( "collapse" , "true" ) ;
1635
1637
addClass ( toggle , "will-expand" ) ;
1636
1638
onEveryMatchingChild ( toggle , "inner" , function ( e ) {
1637
1639
e . innerHTML = labelForToggleButton ( true ) ;
1972
1974
window . onresize = function ( ) {
1973
1975
hideSidebar ( ) ;
1974
1976
} ;
1977
+
1978
+ if ( getCurrentValue ( "collapse" ) === "true" ) {
1979
+ toggleAllDocs ( ) ;
1980
+ }
1975
1981
} ( ) ) ;
1976
1982
1977
1983
// Sets the focus on the search bar at the top of the page
You can’t perform that action at this time.
0 commit comments