Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2017-06-28 12:42:24 +0300
committerJames Edwards-Jones <jedwardsjones@gitlab.com>2017-06-29 01:29:10 +0300
commit5bf817734ed92db8c2b750a7af406793d5e11b82 (patch)
tree24277e3579061686052b6b8d6b645441ece5d04b /app
parent7016bb7bee81db4afa7e9d7ba0ba12d0ac1e1dd8 (diff)
Merge branch '34430-fix-double-escape-comment-edit' into 'master'
Remove unnecessary call to `_.escape` Closes #34430 See merge request !12505
Diffstat (limited to 'app')
-rw-r--r--app/assets/javascripts/notes.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js
index 2a999dd61ba..e0a30d2648a 100644
--- a/app/assets/javascripts/notes.js
+++ b/app/assets/javascripts/notes.js
@@ -1502,7 +1502,7 @@ const normalizeNewlines = function(str) {
const cachedNoteBodyText = $noteBodyText.html();
// Show updated comment content temporarily
- $noteBodyText.html(_.escape(formContent));
+ $noteBodyText.html(formContent);
$editingNote.removeClass('is-editing fade-in-full').addClass('being-posted fade-in-half');
$editingNote.find('.note-headline-meta a').html('<i class="fa fa-spinner fa-spin" aria-label="Comment is being updated" aria-hidden="true"></i>');