Skip to content

Commit eb2ef74

Browse files
author
Mark Robinson
committed
Generate .dot files rather than .gv proprietary extension
1 parent d3d5ba9 commit eb2ef74

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/resources/static/js/workflow.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,13 @@ require(['jquery', 'bootstrap.modal', 'renderer'],
9797
/**
9898
* Downloading of the DOT graph as a .gv file
9999
*/
100-
$('#download-gv').click(function (event) {
100+
$('#download-dot').click(function (event) {
101101
// Generate download link src
102102
var dotGraph = $("#dot").val();
103103
var src = "data:text/plain;charset=utf-8," + encodeURIComponent(dotGraph);
104104

105105
// Set hidden download link href to contents and click it
106-
var downloadLink = $("#download-link-gv");
106+
var downloadLink = $("#download-link-dot");
107107
downloadLink.attr("href", src);
108108
downloadLink[0].click();
109109

src/main/resources/templates/workflow.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@
3939
<h4 class="modal-title" id="dotGraphLabel">Workflow DOT Graph</h4>
4040
</div>
4141
<div class="modal-body">
42-
<a id="download-link-gv" href="" download="workflow.gv"></a>
43-
<button id="download-gv" class="btn btn-primary" type="button">Download as .gv File</button>
42+
<a id="download-link-dot" href="" download="workflow.dot"></a>
43+
<button id="download-dot" class="btn btn-primary" type="button">Download as .dot File</button>
4444
<textarea id="dot" class="form-control" rows="15" th:field="${workflow.dotGraph}">
4545
digraph G {
4646
graph [

0 commit comments

Comments
 (0)