From 1c8e302a62fc3362751d0697882f2d7ea04ff1cd Mon Sep 17 00:00:00 2001 From: Alon Levy Date: Tue, 11 Nov 2014 20:02:59 +0200 Subject: 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 --- index.html | 6 +++--- res/css/style.css | 2 +- scripts/buttons.js | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index 6b305434..02fce7ab 100644 --- a/index.html +++ b/index.html @@ -87,8 +87,8 @@
-
@@ -99,7 +99,7 @@
- Load + Import
diff --git a/res/css/style.css b/res/css/style.css index 2fac294e..f928073a 100644 --- a/res/css/style.css +++ b/res/css/style.css @@ -314,7 +314,7 @@ input:focus { .save{ } -.saveToFile { +.export { } .local-storage-load { 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; -- cgit v1.3.1