- unless @notes.blank?
- if loading_more_notes?
:plain
- NoteList.appendMoreNotes(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}");
+ NoteList.appendMoreNotes(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes')}");
- elsif loading_new_notes?
:plain
- NoteList.replaceNewNotes("#{escape_javascript(render 'notes/notes_list')}");
+ NoteList.replaceNewNotes("#{escape_javascript(render 'notes/notes')}");
- else
:plain
- NoteList.setContent(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}");
+ NoteList.setContent(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes')}");
- else
- if loading_more_notes?