From c9b638c26d4abacf9fde446a9ae99018f1855216 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Mon, 11 Feb 2013 04:33:41 +0400 Subject: [PATCH] odeties with chrome replacing –... Signed-off-by: Alex A. Naanou --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 877f736..87c4e04 100755 --- a/index.html +++ b/index.html @@ -1004,12 +1004,14 @@ $(document).ready(function(){ loadSettings() // setup download link... + /* $('#downloader') .attr('href','data:text/octet-stream;base64,'+btoa( JSON.stringify(buildJSON(true, true)) // this is a really odd one, Chrome seems to replace some // entities with actual chars... .replace(/–/g, '–'))) + */ // upload... function handleFileSelect(evt) { @@ -1024,7 +1026,7 @@ $(document).ready(function(){ reader.onload = (function(theFile) { return function(e) { console.log('loading...') - console.log($.parseJSON(e.target.result)) + window.JSON_DATA = e.target.result loadJSON($.parseJSON(e.target.result), true) console.log('done.') };