Commit 3c02c93f08019a73929de8e812424e581c58c62a
1 parent
8fb70d92
Exists in
master
and in
4 other branches
Remove 'notes/load' partial
Showing
2 changed files
with
17 additions
and
18 deletions
Show diff stats
app/views/notes/_load.js.haml
@@ -1,17 +0,0 @@ | @@ -1,17 +0,0 @@ | ||
1 | -- unless @notes.blank? | ||
2 | - - if loading_more_notes? | ||
3 | - :plain | ||
4 | - NoteList.appendMoreNotes(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}"); | ||
5 | - | ||
6 | - - elsif loading_new_notes? | ||
7 | - :plain | ||
8 | - NoteList.replaceNewNotes("#{escape_javascript(render 'notes/notes_list')}"); | ||
9 | - | ||
10 | - - else | ||
11 | - :plain | ||
12 | - NoteList.setContent(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}"); | ||
13 | - | ||
14 | -- else | ||
15 | - - if loading_more_notes? | ||
16 | - :plain | ||
17 | - NoteList.finishedLoadingMore(); |
app/views/notes/index.js.haml
1 | -= render "notes/load" | 1 | +- unless @notes.blank? |
2 | + - if loading_more_notes? | ||
3 | + :plain | ||
4 | + NoteList.appendMoreNotes(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}"); | ||
5 | + | ||
6 | + - elsif loading_new_notes? | ||
7 | + :plain | ||
8 | + NoteList.replaceNewNotes("#{escape_javascript(render 'notes/notes_list')}"); | ||
9 | + | ||
10 | + - else | ||
11 | + :plain | ||
12 | + NoteList.setContent(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes_list')}"); | ||
13 | + | ||
14 | +- else | ||
15 | + - if loading_more_notes? | ||
16 | + :plain | ||
17 | + NoteList.finishedLoadingMore(); |