Merge pull request #2746 from notriddle/patch-1
Work around compat break in old index.hbs templates with new searcher.js
This commit is contained in:
commit
0ac89dd826
1 changed files with 4 additions and 1 deletions
|
|
@ -434,7 +434,10 @@ window.search = window.search || {};
|
|||
|
||||
function showSearch(yes) {
|
||||
if (yes) {
|
||||
loadSearchScript(window.path_to_searchindex_js, 'search-index');
|
||||
loadSearchScript(
|
||||
window.path_to_searchindex_js ||
|
||||
path_to_root + '{{ resource "searchindex.js" }}',
|
||||
'search-index');
|
||||
search_wrap.classList.remove('hidden');
|
||||
searchicon.setAttribute('aria-expanded', 'true');
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue