2011-11-04 16:46:51 +01:00
|
|
|
- unless @notes.blank?
|
2012-09-14 16:52:24 +02:00
|
|
|
- if loading_more_notes?
|
2011-11-04 16:46:51 +01:00
|
|
|
:plain
|
2012-09-14 16:52:24 +02:00
|
|
|
NoteList.appendMoreNotes(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}");
|
2011-11-04 16:46:51 +01:00
|
|
|
|
2012-09-14 16:52:24 +02:00
|
|
|
- elsif loading_new_notes?
|
2011-11-04 16:46:51 +01:00
|
|
|
:plain
|
2012-09-14 16:52:24 +02:00
|
|
|
NoteList.replaceNewNotes("#{escape_javascript(render 'notes/notes_list')}");
|
2011-11-04 16:46:51 +01:00
|
|
|
|
2011-11-05 12:59:43 +01:00
|
|
|
- else
|
|
|
|
:plain
|
2012-09-14 16:52:24 +02:00
|
|
|
NoteList.setContent(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}");
|
2012-02-12 22:52:27 +01:00
|
|
|
|
2012-06-04 00:37:27 +02:00
|
|
|
- else
|
2012-09-14 16:52:24 +02:00
|
|
|
- if loading_more_notes?
|
2012-02-12 22:52:27 +01:00
|
|
|
:plain
|
2012-09-14 16:52:24 +02:00
|
|
|
NoteList.finishedLoadingMore();
|