Skip to content

Commit

Permalink
Add missing choosers in Wagtail 6.1+ (wagtail#815)
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab authored Aug 22, 2024
1 parent 8849e1a commit 79fda25
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,15 @@

{% block extra_js %}
{% include "wagtailadmin/pages/_editor_js.html" %}

<script>
if (typeof window.chooserUrls === "undefined") {
window.chooserUrls = {
imageChooser: "{% url "wagtailimages_chooser:choose" %}",
documentChooser: "{% url "wagtaildocs_chooser:choose" %}",
pageChooser: "{% url "wagtailadmin_choose_page" %}",
}
}
</script>
<script src="{% url 'wagtail_localize:javascript_catalog' %}"></script>
<script src="{% versioned_static 'wagtailadmin/js/page-chooser-modal.js' %}"></script>
<script src="{% versioned_static 'wagtailadmin/js/page-chooser.js' %}"></script>
Expand Down

0 comments on commit 79fda25

Please sign in to comment.