File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
src/librustdoc/html/static Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -2739,14 +2739,17 @@ function defocusSearchBar() {
2739
2739
} ) ;
2740
2740
}
2741
2741
2742
- window . addSearchOptions = function ( crates ) {
2742
+ function enableSearchInput ( ) {
2743
2743
if ( search_input ) {
2744
2744
search_input . removeAttribute ( 'disabled' ) ;
2745
2745
}
2746
+ }
2746
2747
2748
+ window . addSearchOptions = function ( crates ) {
2747
2749
var elem = document . getElementById ( "crate-search" ) ;
2748
2750
2749
2751
if ( ! elem ) {
2752
+ enableSearchInput ( ) ;
2750
2753
return ;
2751
2754
}
2752
2755
var crates_text = [ ] ;
@@ -2784,7 +2787,7 @@ function defocusSearchBar() {
2784
2787
elem . value = savedCrate ;
2785
2788
}
2786
2789
}
2787
-
2790
+ enableSearchInput ( ) ;
2788
2791
} ;
2789
2792
2790
2793
function buildHelperPopup ( ) {
You can’t perform that action at this time.
0 commit comments