more fixes
This commit is contained in:
1 parent
1e64047175
commit
470d366e72
2 files changed
+58
-15
No files matched your search
@@ -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"
|
||||
|
||||
@@ -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 + " <b>" + type + "</b> has no paragraphs."])
|
||||
navigateTo('Superalgos', 'Topic', 'Docs Command Errors', 'Anchor Page With No Paragraphs')
|
||||
return
|
||||
}
|
||||
navigateTo(project, category, type, anchor, undefined)
|
||||
|
||||
Reference in new issue
Block a user