diff options
-rw-r--r-- | wqflask/wqflask/static/new/javascript/network_graph.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wqflask/wqflask/static/new/javascript/network_graph.js b/wqflask/wqflask/static/new/javascript/network_graph.js index e8ca6be0..d1afd47c 100644 --- a/wqflask/wqflask/static/new/javascript/network_graph.js +++ b/wqflask/wqflask/static/new/javascript/network_graph.js @@ -187,8 +187,8 @@ window.onload=function() { $("a#image_link").click(function(e) { var pngData = cy.png(); - image_link.href = 'data:image/png;base64,' + pngData; - image_link.download = 'network_graph.png'; + $(this).attr('href', pngData); + $(this).attr('download', 'network_graph.png'); console.log("TESTING:", image_link) |