projects
/
erdiag.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
29b03f1
)
Fix typo 'compact' --> 'graph' for output
master
author
Benjamin Auder
<benjamin.auder@somewhere>
Mon, 10 Dec 2018 15:21:00 +0000
(16:21 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Mon, 10 Dec 2018 15:21:00 +0000
(16:21 +0100)
parser.js
patch
|
blob
|
blame
|
history
diff --git
a/parser.js
b/parser.js
index
2919c56
..
0ab6a43
100644
(file)
--- a/
parser.js
+++ b/
parser.js
@@
-9,7
+9,7
@@
class ErDiags
this.tables = { };
this.mcdParsing(description);
this.mldParsing();
this.tables = { };
this.mcdParsing(description);
this.mldParsing();
- this.output = output || "
compact
";
+ this.output = output || "
graph
";
this.image = image || "svg";
}
this.image = image || "svg";
}
@@
-403,7
+403,7
@@
class ErDiags
mcdDot += '}';
if (this.output == "graph") //draw graph in element
element.innerHTML = "<img src='scripts/getGraph_" + this.image + ".php?dot=" + encodeURIComponent(mcdDot) + "'/>";
mcdDot += '}';
if (this.output == "graph") //draw graph in element
element.innerHTML = "<img src='scripts/getGraph_" + this.image + ".php?dot=" + encodeURIComponent(mcdDot) + "'/>";
- else //just show dot input
+ else //
output = "text":
just show dot input
element.innerHTML = mcdDot.replace(/</g,"<").replace(/>/g,">");
}
element.innerHTML = mcdDot.replace(/</g,"<").replace(/>/g,">");
}