diff --git a/setup.py b/setup.py index 98ad157..037d9d0 100644 --- a/setup.py +++ b/setup.py @@ -45,7 +45,7 @@ ], install_requires=[ "Django>=3.2,<4.2", - "Wagtail>=2.15,<4.1", + "Wagtail>=4.0", ], extras_require={ "testing": ["dj-database-url==0.5.0", "freezegun==0.3.15"], diff --git a/wagtail_hallo/static/js/hallo-plugins/hallo-wagtaildoclink.js b/wagtail_hallo/static/js/hallo-plugins/hallo-wagtaildoclink.js index 447191e..8f7d2e1 100644 --- a/wagtail_hallo/static/js/hallo-plugins/hallo-wagtaildoclink.js +++ b/wagtail_hallo/static/js/hallo-plugins/hallo-wagtaildoclink.js @@ -31,7 +31,7 @@ url: window.chooserUrls.documentChooser, onload: DOCUMENT_CHOOSER_MODAL_ONLOAD_HANDLERS, responses: { - documentChosen: function (docData) { + chosen: function (docData) { var link; link = document.createElement('a'); diff --git a/wagtail_hallo/static/js/hallo-plugins/hallo-wagtailimage.js b/wagtail_hallo/static/js/hallo-plugins/hallo-wagtailimage.js index 3b6e935..c32f5d3 100644 --- a/wagtail_hallo/static/js/hallo-plugins/hallo-wagtailimage.js +++ b/wagtail_hallo/static/js/hallo-plugins/hallo-wagtailimage.js @@ -35,7 +35,7 @@ url: window.chooserUrls.imageChooser + '?select_format=true', onload: IMAGE_CHOOSER_MODAL_ONLOAD_HANDLERS, responses: { - imageChosen: function (imageData) { + chosen: function (imageData) { var elem; elem = $(imageData.html).get(0);