diff options
author | Patrick Simianer <p@simianer.de> | 2015-12-11 17:06:50 +0100 |
---|---|---|
committer | Patrick Simianer <p@simianer.de> | 2015-12-11 17:06:50 +0100 |
commit | c273faedee7b0c73945dfd8fdab15d655b6c4f3a (patch) | |
tree | 03024cde8ff1c622a2a2f23d70696411b0af8847 /js/lfpe.js | |
parent | 7c179958222b95939ff1881a49126e08a38d489e (diff) |
save original view as svg
Diffstat (limited to 'js/lfpe.js')
-rw-r--r-- | js/lfpe.js | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -177,6 +177,7 @@ function Next() post_edit = ""; send_data["post_edit"] = encodeURIComponent(post_edit); send_data['type'] = 'g'; + send_data["original_svg"] = document.getElementById("original_svg").value; } else { post_edit = trim(target_textarea.value); send_data["post_edit"] = post_edit; @@ -186,7 +187,6 @@ function Next() send_data["key"] = key; // send data - // ??? if (oov_correct.value=="false" && post_edit != "") { send_data["EDIT"] = true; send_data["duration"] = Timer.get(); @@ -362,6 +362,7 @@ function Next() DE_init(); var x = trim(JSON.parse(DE_extract_data())["target"].join(" ")); last_post_edit.value = x; + document.getElementById("original_svg").value = DE_get_raw_svg_data(); } // start timer |