Remove wall from basic notes logic

This commit is contained in:
Dmitriy Zaporozhets 2013-03-19 12:34:14 +02:00
parent 1752c6dc8b
commit 5bf3a898ed
5 changed files with 3 additions and 183 deletions

View file

@ -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);