Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
cb537324
Commit
cb537324
authored
Jan 06, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed edit form authenticity_token call failing the tests
parent
6003f6ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
app/assets/javascripts/notes.js
app/assets/javascripts/notes.js
+3
-1
app/views/projects/notes/_edit_form.html.haml
app/views/projects/notes/_edit_form.html.haml
+1
-2
No files found.
app/assets/javascripts/notes.js
View file @
cb537324
...
...
@@ -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
);
...
...
app/views/projects/notes/_edit_form.html.haml
View file @
cb537324
.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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment