| 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 | |