Remove wall from basic notes logic
This commit is contained in:
parent
1752c6dc8b
commit
5bf3a898ed
5 changed files with 3 additions and 183 deletions
|
@ -1,15 +1,4 @@
|
|||
- unless @notes.blank?
|
||||
var notesHtml = "#{escape_javascript(render 'notes/notes')}";
|
||||
- new_note_ids = @notes.map(&:id)
|
||||
- if loading_more_notes?
|
||||
NoteList.appendMoreNotes(#{new_note_ids}, notesHtml);
|
||||
|
||||
- elsif loading_new_notes?
|
||||
NoteList.replaceNewNotes(#{new_note_ids}, notesHtml);
|
||||
|
||||
- else
|
||||
NoteList.setContent(#{new_note_ids}, notesHtml);
|
||||
|
||||
- else
|
||||
- if loading_more_notes?
|
||||
NoteList.finishedLoadingMore();
|
||||
NoteList.setContent(#{new_note_ids}, notesHtml);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue