File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 823823 $ ( document ) . on ( "click" , ".collapse-toggle" , function ( ) {
824824 var toggle = $ ( this ) ;
825825 var relatedDoc = toggle . parent ( ) . next ( ) ;
826+ if ( relatedDoc . is ( ".stability" ) ) {
827+ relatedDoc = relatedDoc . next ( ) ;
828+ }
826829 if ( relatedDoc . is ( ".docblock" ) ) {
827830 if ( relatedDoc . is ( ":visible" ) ) {
828831 relatedDoc . slideUp ( { duration :'fast' , easing :'linear' } ) ;
843846 . html ( "[<span class='inner'>-</span>]" ) ;
844847
845848 $ ( ".method" ) . each ( function ( ) {
846- if ( $ ( this ) . next ( ) . is ( ".docblock" ) ) {
847- $ ( this ) . children ( ) . first ( ) . after ( toggle . clone ( ) ) ;
848- }
849+ if ( $ ( this ) . next ( ) . is ( ".docblock" ) ||
850+ ( $ ( this ) . next ( ) . is ( ".stability" ) && $ ( this ) . next ( ) . next ( ) . is ( ".docblock" ) ) ) {
851+ $ ( this ) . children ( ) . first ( ) . after ( toggle . clone ( ) ) ;
852+ }
849853 } ) ;
850854
851855 var mainToggle =
You can’t perform that action at this time.
0 commit comments