diff options
author | Phil Hughes <me@iamphill.com> | 2017-01-06 10:33:06 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-01-06 10:33:06 +0000 |
commit | cb537324a38f6680741f2da8c074ff7220e75a4f (patch) | |
tree | c1c06c1331aa19eb3181e2917a87bf51e527626d /app/assets | |
parent | 6003f6ea93f8935ef4b6e9972f06a6a11aa48e69 (diff) | |
download | gitlab-ce-fixed-edit-form-failing-test.tar.gz |
Fixed edit form authenticity_token call failing the testsfixed-edit-form-failing-test
Diffstat (limited to 'app/assets')
-rw-r--r-- | app/assets/javascripts/notes.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes.js b/app/assets/javascripts/notes.js index 8de5a6191b6..603db88567d 100644 --- a/app/assets/javascripts/notes.js +++ b/app/assets/javascripts/notes.js @@ -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); |