From 620bed73bb16804782ef109f4433edfdacbeab5f Mon Sep 17 00:00:00 2001 From: zadam Date: Tue, 27 Dec 2022 15:05:12 +0100 Subject: [PATCH] put back the removed widgets, the BC break is not worth it --- src/public/app/services/frontend_script_api.js | 18 ++++++++++++++++++ src/services/hidden_subtree.js | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/src/public/app/services/frontend_script_api.js b/src/public/app/services/frontend_script_api.js index 14b714ba2..5f89a9297 100644 --- a/src/public/app/services/frontend_script_api.js +++ b/src/public/app/services/frontend_script_api.js @@ -41,6 +41,24 @@ function FrontendScriptApi(startNote, currentNote, originEntity = null, $contain /** @property {NoteContextAwareWidget} */ this.NoteContextAwareWidget = NoteContextAwareWidget; + /** + * @property {NoteContextAwareWidget} + * @deprecated use NoteContextAwareWidget instead + */ + this.TabAwareWidget = NoteContextAwareWidget; + + /** + * @property {NoteContextAwareWidget} + * @deprecated use NoteContextAwareWidget instead + */ + this.TabCachingWidget = NoteContextAwareWidget; + + /** + * @property {NoteContextAwareWidget} + * @deprecated use NoteContextAwareWidget instead + */ + this.NoteContextCachingWidget = NoteContextAwareWidget; + /** @property {BasicWidget} */ this.BasicWidget = BasicWidget; diff --git a/src/services/hidden_subtree.js b/src/services/hidden_subtree.js index 2029c2fa2..a3113381d 100644 --- a/src/services/hidden_subtree.js +++ b/src/services/hidden_subtree.js @@ -308,7 +308,7 @@ function checkHiddenSubtreeRecursively(parentNoteId, item) { for (const attr of attrs) { const attrId = note.noteId + "_" + attr.type.charAt(0) + attr.name; - if (!note.getAttributes().find(attr => attr.attributeId === attrId)) {console.log("EEEEE"); + if (!note.getAttributes().find(attr => attr.attributeId === attrId)) { new Attribute({ attributeId: attrId, noteId: note.noteId,