Skip to content

Commit

Permalink
Updated responses to match Wagtail 4 chooser names
Browse files Browse the repository at this point in the history
  • Loading branch information
cnk committed Nov 4, 2022
1 parent 5c0fd2c commit 8050b66
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8050b66

Please sign in to comment.