Skip to content
Snippets Groups Projects
Commit d0630ed3 authored by Ben Boeckel's avatar Ben Boeckel
Browse files

notes.js: also return the original content when getting form data

parent 490cce63
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -1280,10 +1280,12 @@ export default class Notes {
* Get data from Form attributes to use for saving/submitting comment.
*/
getFormData($form) {
const content = $form.find('.js-note-text').val();
return {
formData: $form.serialize(),
formContent: _.escape($form.find('.js-note-text').val()),
formContent: _.escape(content),
formAction: $form.attr('action'),
formContentOriginal: content,
};
}
 
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment