diff options
author | Phil Hughes <me@iamphill.com> | 2017-01-06 13:33:06 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-01-06 13:33:06 +0300 |
commit | cb537324a38f6680741f2da8c074ff7220e75a4f (patch) | |
tree | c1c06c1331aa19eb3181e2917a87bf51e527626d /app/assets/javascripts/notes.js | |
parent | 6003f6ea93f8935ef4b6e9972f06a6a11aa48e69 (diff) |
Fixed edit form authenticity_token call failing the tests
Diffstat (limited to 'app/assets/javascripts/notes.js')
-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); |