diff options
Diffstat (limited to 'addons/mail/static/src/js/document_viewer.js')
| -rw-r--r-- | addons/mail/static/src/js/document_viewer.js | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/document_viewer.js b/addons/mail/static/src/js/document_viewer.js index be7dfeb9115..b46aea302c5 100644 --- a/addons/mail/static/src/js/document_viewer.js +++ b/addons/mail/static/src/js/document_viewer.js @@ -9,6 +9,13 @@ var QWeb = core.qweb; var SCROLL_ZOOM_STEP = 0.1; var ZOOM_STEP = 0.5; +/** + * This widget is deprecated, and should instead use AttachmentViewer component. + * @see `mail/static/src/components/attachment_viewer/attachment_viewer.js` + * TODO: remove this widget when it's not longer used + * + * @deprecated + */ var DocumentViewer = Widget.extend({ template: "DocumentViewer", events: { @@ -86,7 +93,6 @@ var DocumentViewer = Widget.extend({ if (this.isDestroyed()) { return; } - this.trigger_up('document_viewer_closed'); this.$el.modal('hide'); this.$el.remove(); this._super.apply(this, arguments); |
