MCPcopy Index your code
hub / github.com/TruthHun/BookStack / loadFlowChartOrSequenceDiagram

Function loadFlowChartOrSequenceDiagram

static/editor.md/editormd.js:533–580  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

531 var loadPath = settings.path;
532
533 var loadFlowChartOrSequenceDiagram = function() {
534
535 if (editormd.isIE8)
536 {
537 _this.loadedDisplay();
538
539 return ;
540 }
541
542 if (settings.flowChart || settings.sequenceDiagram)
543 {
544 editormd.loadScript(loadPath + "raphael.min", function() {
545
546 editormd.loadScript(loadPath + "underscore.min", function() {
547
548 if (!settings.flowChart && settings.sequenceDiagram)
549 {
550 editormd.loadScript(loadPath + "sequence-diagram.min", function() {
551 _this.loadedDisplay();
552 });
553 }
554 else if (settings.flowChart && !settings.sequenceDiagram)
555 {
556 editormd.loadScript(loadPath + "flowchart.min", function() {
557 editormd.loadScript(loadPath + "jquery.flowchart.min", function() {
558 _this.loadedDisplay();
559 });
560 });
561 }
562 else if (settings.flowChart && settings.sequenceDiagram)
563 {
564 editormd.loadScript(loadPath + "flowchart.min", function() {
565 editormd.loadScript(loadPath + "jquery.flowchart.min", function() {
566 editormd.loadScript(loadPath + "sequence-diagram.min", function() {
567 _this.loadedDisplay();
568 });
569 });
570 });
571 }
572 });
573
574 });
575 }
576 else
577 {
578 _this.loadedDisplay();
579 }
580 };
581
582 editormd.loadCSS(loadPath + "codemirror/codemirror.min");
583

Callers 1

editormd.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected