Skip to content

Commit

Permalink
indicate done spraying
Browse files Browse the repository at this point in the history
  • Loading branch information
ivp08001 committed Dec 16, 2015
1 parent f8ea663 commit 2ed8a20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion VQI_PathwayEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2152,7 +2152,7 @@ var VQI_PathwayEditor = function (parent) {
}

self.produceJSONExternalNoGUI = function(){
download(states[states.length - 1], "data.txt", "text/plain");
download(self.json, "data.txt", "text/plain");
}

self.sprayColorExternalNoGUI = function (list) {
Expand Down
4 changes: 4 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<input type=button onclick="findYue()" value="find Yue">
<input type=button onclick="findTham()" value="find Tham">
<input type=button onclick="print()" value="print">
<input type=button onclick="save()" value="save">
<input id="file" type=file value="spray from file">
<div id="parent"></div>
<script src="VQI_Observable.js"></script>
Expand Down Expand Up @@ -58,6 +59,9 @@ function sprayFromFile() {
function print() {
objVQI_PathwayEditor.printGraph();
}
function save() {
objVQI_PathwayEditor.produceJSONExternalNoGUI();
}
document.getElementById("file").addEventListener("change", sprayFromFile);
</script>
Expand Down

0 comments on commit 2ed8a20

Please sign in to comment.