Remove 'notes/load' partial
This commit is contained in:
parent
8fb70d924d
commit
3c02c93f08
2 changed files with 17 additions and 18 deletions
|
@ -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();
|
|
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue