Skip to content

Commit

Permalink
Add missing choosers in Wagtail 6.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
zerolab committed Aug 22, 2024
1 parent 0d7ecc8 commit dae2d24
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 dae2d24

Please sign in to comment.