diff options
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/projects/notes/_edit_form.html.haml | 3 | ||||
-rw-r--r-- | app/views/projects/notes/_note.html.haml | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/app/views/projects/notes/_edit_form.html.haml b/app/views/projects/notes/_edit_form.html.haml index bf2f58a0cb1..8b09eae38f0 100644 --- a/app/views/projects/notes/_edit_form.html.haml +++ b/app/views/projects/notes/_edit_form.html.haml @@ -1,5 +1,8 @@ .note-edit-form = form_tag '#', method: :put, remote: true, class: 'edit-note common-note-form js-quick-submit' do + = hidden_field_tag :authenticity_token, form_authenticity_token + = hidden_field_tag :target_id, '', class: 'formTargetId' + = hidden_field_tag :target_type, '', class: 'formTargetType' = render layout: 'projects/md_preview', locals: { preview_class: 'md-preview' } do = render 'projects/zen', attr: 'note[note]', classes: 'note-textarea js-note-text js-task-list-field', placeholder: "Write a comment or drag your files here..." = render 'projects/notes/hints' diff --git a/app/views/projects/notes/_note.html.haml b/app/views/projects/notes/_note.html.haml index fc4cb3f4a6d..3c62c94eafc 100644 --- a/app/views/projects/notes/_note.html.haml +++ b/app/views/projects/notes/_note.html.haml @@ -69,6 +69,7 @@ - if note_editable .original-note-content.hidden{data: {post_url: namespace_project_note_path(@project.namespace, @project, note), target_id: note.noteable.id, target_type: note.noteable.class.name.underscore}} #{note.note} + %textarea.hidden.js-task-list-field.original-task-list #{note.note} .note-awards = render 'award_emoji/awards_block', awardable: note, inline: false - if note.system |