From 57b101c3d8d3a41c20657c741f98399b1b0d7be9 Mon Sep 17 00:00:00 2001 From: eb1 Date: Thu, 12 Sep 2019 16:53:51 -0500 Subject: [PATCH] Fix #382 Mismatched escape / unescape in model.save() call. This fix requires a bump in the iOS version, as the previous build version has been uploaded already. --- www/config.xml | 2 +- www/js/Application.js | 2 +- www/js/views/AdaptViews.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/www/config.xml b/www/config.xml index 4d3e9975..964c2fb7 100644 --- a/www/config.xml +++ b/www/config.xml @@ -1,5 +1,5 @@ - + Adapt It Mobile An open source application for translating between related languages. diff --git a/www/js/Application.js b/www/js/Application.js index f81b1216..81e6c074 100755 --- a/www/js/Application.js +++ b/www/js/Application.js @@ -77,7 +77,7 @@ define(function (require) { localURLs: [], version: "1.2.0", // appended with milestone / iOS build info MilestoneBuild: "28", // milestone release # - iOSBuild: "1.2.0", + iOSBuild: "1.2.1", // Mimics Element.scrollIntoView({"block": "center", "behavior": "smooth"}) for // browsers that do not support this scrollIntoViewOptions yet. diff --git a/www/js/views/AdaptViews.js b/www/js/views/AdaptViews.js index 6cec0eed..474e7ab3 100644 --- a/www/js/views/AdaptViews.js +++ b/www/js/views/AdaptViews.js @@ -2206,7 +2206,7 @@ define(function (require) { // add any punctuation back to the target field $(event.currentTarget).html(this.copyPunctuation(model, trimmedValue)); // update the model with the new target text - model.save({target: Underscore.escape(this.copyPunctuation(model, trimmedValue))}); + model.save({target: this.copyPunctuation(model, trimmedValue)}); // if the target differs from the source, make it display in green if (model.get('source') === model.get('target')) { // source === target --> remove "differences" from the class so the text is black