Skip to content
Snippets Groups Projects
Commit cb537324 authored by Phil Hughes's avatar Phil Hughes
Browse files

Fixed edit form authenticity_token call failing the tests

parent 6003f6ea
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -895,7 +895,9 @@
 
new GLForm($editForm.find('form'));
 
$editForm.find('form').attr('action', postUrl);
$editForm.find('form')
.attr('action', postUrl)
.attr('data-remote', 'true');
$editForm.find('.js-form-target-id').val(targetId);
$editForm.find('.js-form-target-type').val(targetType);
$editForm.find('.js-note-text').focus().val(originalContent);
Loading
Loading
.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
= form_tag '#', method: :put, class: 'edit-note common-note-form js-quick-submit' do
= hidden_field_tag :target_id, '', class: 'js-form-target-id'
= hidden_field_tag :target_type, '', class: 'js-form-target-type'
= render layout: 'projects/md_preview', locals: { preview_class: 'md-preview', referenced_users: true } do
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