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 828
828
$ ( document ) . on ( "click" , ".collapse-toggle" , function ( ) {
829
829
var toggle = $ ( this ) ;
830
830
var relatedDoc = toggle . parent ( ) . next ( ) ;
831
+ if ( relatedDoc . is ( ".stability" ) ) {
832
+ relatedDoc = relatedDoc . next ( ) ;
833
+ }
831
834
if ( relatedDoc . is ( ".docblock" ) ) {
832
835
if ( relatedDoc . is ( ":visible" ) ) {
833
836
relatedDoc . slideUp ( { duration :'fast' , easing :'linear' } ) ;
848
851
. html ( "[<span class='inner'>-</span>]" ) ;
849
852
850
853
$ ( ".method" ) . each ( function ( ) {
851
- if ( $ ( this ) . next ( ) . is ( ".docblock" ) ) {
852
- $ ( this ) . children ( ) . first ( ) . after ( toggle . clone ( ) ) ;
853
- }
854
+ if ( $ ( this ) . next ( ) . is ( ".docblock" ) ||
855
+ ( $ ( this ) . next ( ) . is ( ".stability" ) && $ ( this ) . next ( ) . next ( ) . is ( ".docblock" ) ) ) {
856
+ $ ( this ) . children ( ) . first ( ) . after ( toggle . clone ( ) ) ;
857
+ }
854
858
} ) ;
855
859
856
860
var mainToggle =
You can’t perform that action at this time.
0 commit comments