diff options
| author | Alon Levy <alon@pobox.com> | 2014-11-11 20:02:59 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2014-11-11 20:04:06 +0200 |
| commit | 1c8e302a62fc3362751d0697882f2d7ea04ff1cd (patch) | |
| tree | 4522f8dadaaee6386e1cdf9f123021bcf4a7ac9e /scripts/buttons.js | |
| parent | 57f8d3a8af3461c63a6e6b71cbd330b4a6905882 (diff) | |
rename load/save file; Fixes #111
The browse button still needs to be fixed. Maybe this:
http://www.shauninman.com/archive/2007/09/10/styling_file_inputs_with_css_and_the_dom
Diffstat (limited to 'scripts/buttons.js')
| -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 6831d620..500d56fc 100644 --- a/scripts/buttons.js +++ b/scripts/buttons.js @@ -12,7 +12,7 @@ $('.save a').click(function(){ localStorage.setItem(key, json); }); -$('.saveToFile a').click(function() { +$('.export a').click(function() { var json = rz_core.graph.save_to_json(); var filename = 'graph.json'; var blob = new Blob([json], {type: 'application/json'}); @@ -27,7 +27,7 @@ var really_load = function() { return true; } -$('.file-load').on('change', function(event) { +$('.file-import').on('change', function(event) { var file = event.target.files[0]; var reader; |
