File tree 1 file changed +7
-3
lines changed
src/librustdoc/html/static
1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 823
823
$ ( document ) . on ( "click" , ".collapse-toggle" , function ( ) {
824
824
var toggle = $ ( this ) ;
825
825
var relatedDoc = toggle . parent ( ) . next ( ) ;
826
+ if ( relatedDoc . is ( ".stability" ) ) {
827
+ relatedDoc = relatedDoc . next ( ) ;
828
+ }
826
829
if ( relatedDoc . is ( ".docblock" ) ) {
827
830
if ( relatedDoc . is ( ":visible" ) ) {
828
831
relatedDoc . slideUp ( { duration :'fast' , easing :'linear' } ) ;
843
846
. html ( "[<span class='inner'>-</span>]" ) ;
844
847
845
848
$ ( ".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
+ }
849
853
} ) ;
850
854
851
855
var mainToggle =
You can’t perform that action at this time.
0 commit comments