diff --git a/assets/js/admin/components/FileUpload.js b/assets/js/admin/components/FileUpload.js index a95044c150..967c6d38cc 100644 --- a/assets/js/admin/components/FileUpload.js +++ b/assets/js/admin/components/FileUpload.js @@ -75,6 +75,7 @@ export default class FileUpload { this.items[id].setLabel(file.name, file.size); this.items[id].setName(file.name.split('.').slice(0, -1).join('.')); this.$uploadedFiles.append($uploadedFile); + (new Register()).registerNewContent($uploadedFile); } createNewUploadedFile () { diff --git a/assets/js/admin/components/MultiplePicker.js b/assets/js/admin/components/MultiplePicker.js index 7806740c04..3cf021bc5c 100644 --- a/assets/js/admin/components/MultiplePicker.js +++ b/assets/js/admin/components/MultiplePicker.js @@ -46,6 +46,7 @@ export default class MultiplePicker { const _this = this; _this.items.push($item); + (new Register()).registerNewContent($item); $item.find('.js-picker-item-button-delete').click(() => { _this.removeItem($item); });