summaryrefslogtreecommitdiff
path: root/app/views/notes/create.js.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-19 12:34:14 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-19 12:34:14 +0200
commit5bf3a898edbbd0fc4f7a4557f6ffaea8ffabfbc7 (patch)
tree8e04d6b7e9f815e95343ce64de6c12e0998cf67b /app/views/notes/create.js.haml
parent1752c6dc8b755bc2fbff2757e8549521b0823048 (diff)
downloadgitlab-ce-5bf3a898edbbd0fc4f7a4557f6ffaea8ffabfbc7.tar.gz
Remove wall from basic notes logic
Diffstat (limited to 'app/views/notes/create.js.haml')
-rw-r--r--app/views/notes/create.js.haml7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/views/notes/create.js.haml b/app/views/notes/create.js.haml
index c573d406b73..43e79c69f11 100644
--- a/app/views/notes/create.js.haml
+++ b/app/views/notes/create.js.haml
@@ -2,10 +2,7 @@
var noteHtml = "#{escape_javascript(render "notes/note", note: @note)}";
- if note_for_main_target?(@note)
- - if @note.for_wall?
- NoteList.appendNewWallNote(#{@note.id}, noteHtml);
- - else
- NoteList.appendNewNote(#{@note.id}, noteHtml);
+ NoteList.appendNewNote(#{@note.id}, noteHtml);
- else
:plain
var firstDiscussionNoteHtml = "#{escape_javascript(render "notes/diff_notes_with_reply", notes: [@note])}";
@@ -18,4 +15,4 @@
- if note_for_main_target?(@note)
NoteList.errorsOnForm(errorsHtml);
- else
- NoteList.errorsOnForm(errorsHtml, "#{@note.discussion_id}"); \ No newline at end of file
+ NoteList.errorsOnForm(errorsHtml, "#{@note.discussion_id}");