Remove 'notes/load' partial

This commit is contained in:
Riyad Preukschas 2012-09-14 05:05:37 +02:00
parent 8fb70d924d
commit 3c02c93f08
2 changed files with 17 additions and 18 deletions

View file

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

View file

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