2012-09-14 03:05:37 +00:00
|
|
|
- unless @notes.blank?
|
|
|
|
- if loading_more_notes?
|
|
|
|
:plain
|
2012-09-14 03:19:38 +00:00
|
|
|
NoteList.appendMoreNotes(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes')}");
|
2012-09-14 03:05:37 +00:00
|
|
|
|
|
|
|
- elsif loading_new_notes?
|
|
|
|
:plain
|
2012-09-14 03:19:38 +00:00
|
|
|
NoteList.replaceNewNotes("#{escape_javascript(render 'notes/notes')}");
|
2012-09-14 03:05:37 +00:00
|
|
|
|
|
|
|
- else
|
|
|
|
:plain
|
2012-09-14 15:01:34 +00:00
|
|
|
NoteList.setContent(#{@notes.first.id}, #{@notes.last.id}, "#{escape_javascript(render 'notes/notes')}");
|
2012-09-14 03:05:37 +00:00
|
|
|
|
|
|
|
- else
|
|
|
|
- if loading_more_notes?
|
|
|
|
:plain
|
|
|
|
NoteList.finishedLoadingMore();
|