Skip to content

Commit

Permalink
Merge pull request #1742 from FFxSquall/bug-fix-empty-document-editor
Browse files Browse the repository at this point in the history
Fix empty attr document/image editor
  • Loading branch information
stasguryev authored Jun 1, 2022
2 parents 4057eba + 3922e11 commit 3344afe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/form/editors/DocumentEditorView.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export default formRepository.editors.Document = BaseCollectionEditorView.extend
this._windowResize = _.throttle(this.update.bind(this), 100, true);
window.addEventListener('resize', this._windowResize);
this.createdUrls = [];
this.$el.attr('data-empty-text', LocalizationService.get('CORE.FORM.EDITORS.DOCUMENT.NODOCUMENT'));
this.$editorEl.attr('data-empty-text', LocalizationService.get('CORE.FORM.EDITORS.DOCUMENT.NODOCUMENT'));
},

canAdd: false,
Expand Down
2 changes: 1 addition & 1 deletion src/form/editors/ImageEditorView.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export default formRepository.editors.Image = BaseCollectionEditorView.extend({
this.__onCollapseClick();
}

this.$el.attr('data-empty-text', LocalizationService.get('CORE.FORM.EDITORS.DOCUMENT.NODOCUMENT'));
this.$editorEl.attr('data-empty-text', LocalizationService.get('CORE.FORM.EDITORS.DOCUMENT.NODOCUMENT'));
},

canAdd: false,
Expand Down

0 comments on commit 3344afe

Please sign in to comment.