diff options
| author | Alon Levy <alon@pobox.com> | 2014-08-06 18:27:15 +0300 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-08-06 18:27:15 +0300 |
| commit | d4543d280fb312ff45be2c8576591478af2439b7 (patch) | |
| tree | ea35d52b6833765657a8db16e4455a36a261b409 | |
| parent | a8b12cc1f7593dacd480bb4aebae909277613182 (diff) | |
buttons.js: on load show the loaded graph
| -rw-r--r-- | scripts/buttons.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/buttons.js b/scripts/buttons.js index f0f447fd..6dbec35a 100644 --- a/scripts/buttons.js +++ b/scripts/buttons.js @@ -45,9 +45,9 @@ $('.load').click(function(){ for(var j=0; j<data["links"].length; j++){ var link=data.links[j]; graph.addLink(link.source,link.target,link.name,"perm"); - - } + graph.recenterZoom(); + graph.update(); } }); |
