Fixed JS error when trying to remove discussion form

Closes #17778
This commit is contained in:
Phil Hughes 2016-05-26 14:57:00 +01:00
parent adc64e4583
commit d7bd7a3e7e

View file

@ -329,7 +329,7 @@ class @Notes
@renderDiscussionNote(note)
# cleanup after successfully creating a diff/discussion note
@removeDiscussionNoteForm($("#new-discussion-note-form-#{note.discussion_id}"))
@removeDiscussionNoteForm($(xhr.target))
###
Called in response to the edit note form being submitted