Skip to content

Commit

Permalink
fix(attachment-widget): set the js widget type from the actual widget…
Browse files Browse the repository at this point in the history
… type

this allow to properly use a custom attachment widget
  • Loading branch information
JoelAlphonso committed Dec 7, 2020
1 parent d25da91 commit a9531e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions templates/charcoal/admin/widget/attachment/js.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ $(document).on('focusin', function(e) {
Charcoal.Admin.manager().add_widget({
id: '{{ widgetId }}',
type: 'charcoal/admin/widget/attachment',
widget_type: '{{ type }}',
data: {
obj_type: '{{ objType }}',
obj_id: '{{ objId }}', // Can be a string
Expand Down

0 comments on commit a9531e9

Please sign in to comment.