File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -544,7 +544,9 @@ var Search = {
544544
545545$ ( document ) . ready ( function ( ) {
546546 Search . init ( ) ;
547-
547+ if ( $ . trim ( $ ( ".topbar-contents .bd-toc" ) . html ( ) ) === "" ) {
548+ $ ( ".topbar-contents .bd-toc" ) . css ( "visibility" , "hidden" ) ;
549+ }
548550 $ ( 'select[name="doc_section"]' ) . change ( function ( ) {
549551 this . form . submit ( ) ;
550552 } ) ;
Original file line number Diff line number Diff line change 77{% block footer %}
88 < script type ="text/javascript ">
99 $ ( document ) . ready ( function ( ) {
10+ if ( $ . trim ( $ ( ".topbar-contents .bd-toc" ) . html ( ) ) === "" ) {
11+ $ ( ".topbar-contents .bd-toc" ) . css ( "visibility" , "hidden" ) ;
12+ }
1013 $ ( ".toggle > *" ) . hide ( ) ;
1114 $ ( ".toggle .admonition-title" ) . show ( ) ;
1215 $ ( ".toggle .admonition-title" ) . click ( function ( ) {
You can’t perform that action at this time.
0 commit comments