diff --git a/src/public/app/widgets/type_widgets/book.js b/src/public/app/widgets/type_widgets/book.js index 549b8a7365..4c6c54c336 100644 --- a/src/public/app/widgets/type_widgets/book.js +++ b/src/public/app/widgets/type_widgets/book.js @@ -23,6 +23,8 @@ export default class BookTypeWidget extends TypeWidget { doRender() { this.$widget = $(TPL); this.$helpNoChildren = this.$widget.find('.note-detail-book-empty-help'); + + super.doRender(); } async doRefresh(note) { diff --git a/src/public/app/widgets/type_widgets/deleted.js b/src/public/app/widgets/type_widgets/deleted.js index 56e7d0f215..955fd28938 100644 --- a/src/public/app/widgets/type_widgets/deleted.js +++ b/src/public/app/widgets/type_widgets/deleted.js @@ -14,5 +14,7 @@ export default class DeletedTypeWidget extends TypeWidget { doRender() { this.$widget = $(TPL); + + super.doRender(); } } diff --git a/src/public/app/widgets/type_widgets/editable_code.js b/src/public/app/widgets/type_widgets/editable_code.js index 76ebab7f99..348cf4bf6f 100644 --- a/src/public/app/widgets/type_widgets/editable_code.js +++ b/src/public/app/widgets/type_widgets/editable_code.js @@ -51,6 +51,8 @@ export default class EditableCodeTypeWidget extends TypeWidget { keyboardActionService.setupActionsForElement('code-detail', this.$widget, this); + super.doRender(); + this.initialized = this.initEditor(); } diff --git a/src/public/app/widgets/type_widgets/empty.js b/src/public/app/widgets/type_widgets/empty.js index eec65adacc..2f35d8c3ab 100644 --- a/src/public/app/widgets/type_widgets/empty.js +++ b/src/public/app/widgets/type_widgets/empty.js @@ -66,6 +66,8 @@ export default class EmptyTypeWidget extends TypeWidget { noteAutocompleteService.showRecentNotes(this.$autoComplete); this.$workspaceNotes = this.$widget.find('.workspace-notes'); + + super.doRender(); } async doRefresh(note) { diff --git a/src/public/app/widgets/type_widgets/file.js b/src/public/app/widgets/type_widgets/file.js index 74da271acb..ac4f32f779 100644 --- a/src/public/app/widgets/type_widgets/file.js +++ b/src/public/app/widgets/type_widgets/file.js @@ -47,6 +47,8 @@ export default class FileTypeWidget extends TypeWidget { this.$pdfPreview = this.$widget.find(".pdf-preview"); this.$videoPreview = this.$widget.find(".video-preview"); this.$audioPreview = this.$widget.find(".audio-preview"); + + super.doRender(); } async doRefresh(note) { diff --git a/src/public/app/widgets/type_widgets/image.js b/src/public/app/widgets/type_widgets/image.js index bb9330a8dc..d6efd880c6 100644 --- a/src/public/app/widgets/type_widgets/image.js +++ b/src/public/app/widgets/type_widgets/image.js @@ -53,6 +53,8 @@ class ImageTypeWidget extends TypeWidget { zoomOnClick: false }); }); + + super.doRender(); } async doRefresh(note) { diff --git a/src/public/app/widgets/type_widgets/none.js b/src/public/app/widgets/type_widgets/none.js index 3b795cc4fc..a844608351 100644 --- a/src/public/app/widgets/type_widgets/none.js +++ b/src/public/app/widgets/type_widgets/none.js @@ -7,5 +7,7 @@ export default class NoneTypeWidget extends TypeWidget { doRender() { this.$widget = $(TPL); + + super.doRender(); } } diff --git a/src/public/app/widgets/type_widgets/protected_session.js b/src/public/app/widgets/type_widgets/protected_session.js index 70617406d3..8a75088944 100644 --- a/src/public/app/widgets/type_widgets/protected_session.js +++ b/src/public/app/widgets/type_widgets/protected_session.js @@ -36,5 +36,7 @@ export default class ProtectedSessionTypeWidget extends TypeWidget { return false; }); + + super.doRender(); } } diff --git a/src/public/app/widgets/type_widgets/read_only_code.js b/src/public/app/widgets/type_widgets/read_only_code.js index ad4243fecf..b8343a4258 100644 --- a/src/public/app/widgets/type_widgets/read_only_code.js +++ b/src/public/app/widgets/type_widgets/read_only_code.js @@ -4,21 +4,12 @@ const TPL = `