refactored too
This commit is contained in:
parent
ca1e3d0579
commit
8a23682fc5
11 changed files with 56 additions and 53 deletions
10
app/views/notes/_load.js.haml
Normal file
10
app/views/notes/_load.js.haml
Normal file
|
@ -0,0 +1,10 @@
|
|||
- unless @notes.blank?
|
||||
|
||||
- if params[:last_id]
|
||||
:plain
|
||||
NoteList.prepend(#{@notes.first.id}, "#{escape_javascript(render(:partial => 'notes/notes_list'))}");
|
||||
|
||||
- if params[:first_id]
|
||||
:plain
|
||||
NoteList.append(#{@notes.last.id}, "#{escape_javascript(render(:partial => 'notes/notes_list'))}");
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue