diff options
author | Phil Hughes <me@iamphill.com> | 2016-05-26 16:57:00 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2016-05-26 16:57:35 +0300 |
commit | d7bd7a3e7ef2e64f50d5404fe3d90f0c1ff57705 (patch) | |
tree | ee9882c1bdca50701c97f43659ffcb5f27f9a35d /app | |
parent | adc64e4583dc42399f681a9b17490f98b8c4bec0 (diff) |
Fixed JS error when trying to remove discussion form
Closes #17778
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/notes.js.coffee | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/notes.js.coffee b/app/assets/javascripts/notes.js.coffee index 6d9d6528f45..8131d923677 100644 --- a/app/assets/javascripts/notes.js.coffee +++ b/app/assets/javascripts/notes.js.coffee @@ -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 |