kopia lustrzana https://github.com/wagtail/wagtail
Fix DocSearch widget initialisation JS error (#6884)
rodzic
1e1e188179
commit
23f146c7e1
|
@ -50,7 +50,7 @@
|
|||
return debug
|
||||
}
|
||||
|
||||
function docSearchReady(script) {
|
||||
function docSearchReady() {
|
||||
/**
|
||||
* Configure Algolia DocSearch.
|
||||
* See https://github.com/algolia/docsearch-configs/blob/master/configs/wagtail.json for index configuration.
|
||||
|
@ -73,6 +73,6 @@
|
|||
return search
|
||||
}
|
||||
|
||||
window.onload(docSearchReady())
|
||||
docSearchReady();
|
||||
</script>
|
||||
{% endblock %}
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
{{ super() }}
|
||||
<script>
|
||||
|
||||
function runSearchPageSearch(event) {
|
||||
function runSearchPageSearch() {
|
||||
const urlParams = new URLSearchParams(window.location.search)
|
||||
const query = urlParams.get('q')
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue