File tree 1 file changed +2
-8
lines changed
src/librustdoc/html/static
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change 4
4
// Local js definitions:
5
5
/* global addClass, getCurrentValue, hasClass */
6
6
/* global onEachLazy, hasOwnProperty, removeClass, updateLocalStorage */
7
+ /* global hideThemeButtonState */
7
8
8
9
if ( ! String . prototype . startsWith ) {
9
10
String . prototype . startsWith = function ( searchString , position ) {
@@ -137,10 +138,6 @@ function defocusSearchBar() {
137
138
sidebar . appendChild ( div ) ;
138
139
}
139
140
}
140
- var themePickers = document . getElementsByClassName ( "theme-picker" ) ;
141
- if ( themePickers && themePickers . length > 0 ) {
142
- themePickers [ 0 ] . style . display = "none" ;
143
- }
144
141
}
145
142
146
143
function hideSidebar ( ) {
@@ -155,10 +152,6 @@ function defocusSearchBar() {
155
152
filler . remove ( ) ;
156
153
}
157
154
document . getElementsByTagName ( "body" ) [ 0 ] . style . marginTop = "" ;
158
- var themePickers = document . getElementsByClassName ( "theme-picker" ) ;
159
- if ( themePickers && themePickers . length > 0 ) {
160
- themePickers [ 0 ] . style . display = null ;
161
- }
162
155
}
163
156
164
157
function showSearchResults ( search ) {
@@ -376,6 +369,7 @@ function defocusSearchBar() {
376
369
document . title = titleBeforeSearch ;
377
370
}
378
371
defocusSearchBar ( ) ;
372
+ hideThemeButtonState ( ) ;
379
373
}
380
374
381
375
function handleShortcut ( ev ) {
You can’t perform that action at this time.
0 commit comments