1
Fork 0

Rollup merge of #66514 - GuillaumeGomez:fix-search-filter-save, r=kinnison

Fix selected crate search filter

Fixes #62929.

r? @kinnison
This commit is contained in:
Mazdak Farrokhzad 2019-11-20 18:32:10 +01:00 committed by GitHub
commit 4bd9168d7f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 16 deletions

View file

@ -882,7 +882,9 @@ themePicker.onblur = handleThemeButtonsBlur;
v.push_str(&minify_replacer(
&format!("{}\n{}", variables.join(""), all_indexes.join("\n")),
options.enable_minification));
v.push_str("initSearch(searchIndex);addSearchOptions(searchIndex);");
// "addSearchOptions" has to be called first so the crate filtering can be set before the
// search might start (if it's set into the URL for example).
v.push_str("addSearchOptions(searchIndex);initSearch(searchIndex);");
cx.shared.fs.write(&dst, &v)?;
}
if options.enable_index_page {