Remove wall from basic notes logic
This commit is contained in:
parent
1752c6dc8b
commit
5bf3a898ed
5 changed files with 3 additions and 183 deletions
|
@ -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}");
|
||||
NoteList.errorsOnForm(errorsHtml, "#{@note.discussion_id}");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue