File tree 3 files changed +7
-6
lines changed
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -86,10 +86,11 @@ pub fn render<T: Print, S: Print>(
86
86
</div>\
87
87
<script src=\" {static_root_path}theme{suffix}.js\" ></script>\
88
88
<nav class=\" sub\" >\
89
- <form class=\" search-form js-only \" >\
89
+ <form class=\" search-form\" >\
90
90
<div class=\" search-container\" >\
91
91
<div>{filter_crates}\
92
92
<input class=\" search-input\" name=\" search\" \
93
+ disabled \
93
94
autocomplete=\" off\" \
94
95
spellcheck=\" false\" \
95
96
placeholder=\" Click or press ‘S’ to search, ‘?’ for more options…\" \
Original file line number Diff line number Diff line change @@ -142,10 +142,6 @@ function getSearchElement() {
142
142
var TY_PRIMITIVE = itemTypes . indexOf ( "primitive" ) ;
143
143
var TY_KEYWORD = itemTypes . indexOf ( "keyword" ) ;
144
144
145
- onEachLazy ( document . getElementsByClassName ( "js-only" ) , function ( e ) {
146
- removeClass ( e , "js-only" ) ;
147
- } ) ;
148
-
149
145
function getQueryStringParams ( ) {
150
146
var params = { } ;
151
147
window . location . search . substring ( 1 ) . split ( "&" ) .
@@ -2626,6 +2622,10 @@ function getSearchElement() {
2626
2622
option . innerText = crates_text [ i ] ;
2627
2623
elem . appendChild ( option ) ;
2628
2624
}
2625
+
2626
+ if ( search_input ) {
2627
+ search_input . removeAttribute ( 'disabled' ) ;
2628
+ } ;
2629
2629
}
2630
2630
2631
2631
window . addSearchOptions = addSearchOptions ;
Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ nav.sub {
197
197
198
198
/* Everything else */
199
199
200
- .js-only , . hidden {
200
+ .hidden {
201
201
display : none !important ;
202
202
}
203
203
You can’t perform that action at this time.
0 commit comments