Commit 5f7db3e94bd821ef561d44c85e611e843d64dc2c
1 parent
d4ec23b8
Exists in
spb-stable
and in
3 other branches
Fix file upload for edit note. Better style for discussion form
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
app/assets/stylesheets/sections/notes.scss
app/views/projects/notes/_note.html.haml
@@ -34,7 +34,7 @@ | @@ -34,7 +34,7 @@ | ||
34 | = markdown(note.note) | 34 | = markdown(note.note) |
35 | 35 | ||
36 | .note-edit-form | 36 | .note-edit-form |
37 | - = form_for note, url: project_note_path(@project, note), method: :put, remote: true do |f| | 37 | + = form_for note, url: project_note_path(@project, note), method: :put, remote: true, authenticity_token: true do |f| |
38 | = f.text_area :note, class: 'note_text js-note-text js-gfm-input turn-on' | 38 | = f.text_area :note, class: 'note_text js-note-text js-gfm-input turn-on' |
39 | 39 | ||
40 | .form-actions | 40 | .form-actions |