diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-19 12:34:14 +0200 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-03-19 12:34:14 +0200 |
| commit | 5bf3a898edbbd0fc4f7a4557f6ffaea8ffabfbc7 (patch) | |
| tree | 8e04d6b7e9f815e95343ce64de6c12e0998cf67b /app/views/notes/create.js.haml | |
| parent | 1752c6dc8b755bc2fbff2757e8549521b0823048 (diff) | |
| download | gitlab-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.haml | 7 |
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}"); |
