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

Function loadFlowChartOrSequenceDiagram

static/editor.md/editormd.amd.js:570–617  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

568 var loadPath = settings.path;
569
570 var loadFlowChartOrSequenceDiagram = function() {
571
572 if (editormd.isIE8)
573 {
574 _this.loadedDisplay();
575
576 return ;
577 }
578
579 if (settings.flowChart || settings.sequenceDiagram)
580 {
581 editormd.loadScript(loadPath + "raphael.min", function() {
582
583 editormd.loadScript(loadPath + "underscore.min", function() {
584
585 if (!settings.flowChart && settings.sequenceDiagram)
586 {
587 editormd.loadScript(loadPath + "sequence-diagram.min", function() {
588 _this.loadedDisplay();
589 });
590 }
591 else if (settings.flowChart && !settings.sequenceDiagram)
592 {
593 editormd.loadScript(loadPath + "flowchart.min", function() {
594 editormd.loadScript(loadPath + "jquery.flowchart.min", function() {
595 _this.loadedDisplay();
596 });
597 });
598 }
599 else if (settings.flowChart && settings.sequenceDiagram)
600 {
601 editormd.loadScript(loadPath + "flowchart.min", function() {
602 editormd.loadScript(loadPath + "jquery.flowchart.min", function() {
603 editormd.loadScript(loadPath + "sequence-diagram.min", function() {
604 _this.loadedDisplay();
605 });
606 });
607 });
608 }
609 });
610
611 });
612 }
613 else
614 {
615 _this.loadedDisplay();
616 }
617 };
618
619 editormd.loadCSS(loadPath + "codemirror/codemirror.min");
620

Callers 1

editormd.amd.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected