diff --git a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-010-docs-command-errors.json b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-010-docs-command-errors.json index a4ff3f206..aaa26619a 100644 --- a/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-010-docs-command-errors.json +++ b/Projects/Superalgos/Schemas/Docs-Topics/docs-commands-010-docs-command-errors.json @@ -38,6 +38,15 @@ "style": "Text", "text": "" }, + { + "style": "Title", + "text": "Applies to", + "updated": 1609162906747 + }, + { + "style": "List", + "text": "Docs Goto Command" + }, { "style": "Anchor", "text": "Anchor Project Does Not Exist" @@ -55,10 +64,18 @@ "style": "Success", "text": "Check that you typed the Project name correctly. Project names are key-sensitive." }, + { + "style": "Title", + "text": "Applies to", + "updated": 1609162883325 + }, + { + "style": "List", + "text": "Docs Goto Command" + }, { "style": "Anchor", - "text": "Anchor Category Not Valid", - "updated": 1609160863036 + "text": "Anchor Category Not Valid" }, { "style": "Title", @@ -75,10 +92,18 @@ "text": " Valid categories are: Node, Concept and Topic. This parameter is key-sensitive.", "updated": 1609161108040 }, + { + "style": "Title", + "text": "Applies to", + "updated": 1609162854123 + }, + { + "style": "List", + "text": "Docs Goto Command" + }, { "style": "Anchor", - "text": "Anchor Page Not Found", - "updated": 1609161391540 + "text": "Anchor Page Not Found" }, { "style": "Title", @@ -93,6 +118,32 @@ "text": "Double check that the Docs Page Name is spelled correctly and that it belongs to the Docs Page Category provided. ", "updated": 1609161473688 }, + { + "style": "Title", + "text": "Applies to", + "updated": 1609162829457 + }, + { + "style": "List", + "text": "Docs Goto Command" + }, + { + "style": "Anchor", + "text": "Anchor Page With No Paragraphs" + }, + { + "style": "Title", + "text": "Page with no paragraphs" + }, + { + "style": "Error", + "text": "The Docs Page Name you specified was found, but it does not have any paragraphs in it. " + }, + { + "style": "Success", + "text": "You need to fix this in order for you or others users to be able to use this command.", + "updated": 1609161948865 + }, { "style": "Text", "text": "4" diff --git a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js index b7a62eecc..65250b04b 100644 --- a/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js +++ b/Projects/Superalgos/UI/Spaces/Docs-Space/DocsSpace.js @@ -612,20 +612,12 @@ function newSuperalgosDocSpace() { for (let i = 1; i < 10; i++) { if (paragraphNode === undefined || paragraphNode === null) { return false } - if (paragraphNode.id === undefined || paragraphNode.id.indexOf('paragraph') < 0) { + if (paragraphNode.id === undefined || paragraphNode.id.indexOf('editable-paragraph') < 0) { paragraphNode = paragraphNode.parentNode if (paragraphNode === undefined) { return false } } } - if (paragraphNode.id === undefined || paragraphNode.id.indexOf('paragraph') < 0) { - return false - } - - /* - We woont continue unless the paragraph the mouse is pointnig at was - tagged as an editable paragraph. - */ - if (paragraphNode.id.indexOf('editable-paragraph') < 0) { + if (paragraphNode.id === undefined || paragraphNode.id.indexOf('editable-paragraph') < 0) { return false } /* @@ -1039,7 +1031,7 @@ function newSuperalgosDocSpace() { return } if (docsSchemaDocument.paragraphs === undefined) { - renderCommandResultsPage([category + " " + type + " has no paragraphs."]) + navigateTo('Superalgos', 'Topic', 'Docs Command Errors', 'Anchor Page With No Paragraphs') return } navigateTo(project, category, type, anchor, undefined)