From 59370f16a20cc56aaa61ca8a9a2aa62d418af22b Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Mon, 18 Aug 2014 21:24:08 +0300 Subject: adding history, links & nodes only no atomicity - nodes/links recorded as separate additions We record both temp (state == 'temp') and not temp nodes, can be filtered during analysis. --- scripts/buttons.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'scripts/buttons.js') diff --git a/scripts/buttons.js b/scripts/buttons.js index 8af525c2..824505d3 100644 --- a/scripts/buttons.js +++ b/scripts/buttons.js @@ -49,3 +49,10 @@ $('.set-user').click(function() { $('.save-history').show(); }) }); + +$('.save-history').click(function() { + if (graph.history === undefined) { + throw "History is undefined"; + } + graph.history.save_to_file(); +}); -- cgit v1.3.1