Update Notes JS for reversed notes

This commit is contained in:
Riyad Preukschas 2012-09-14 17:01:34 +02:00
parent 7563abbe49
commit 07eec9c66a
4 changed files with 27 additions and 11 deletions

View file

@ -9,7 +9,7 @@
- else
:plain
NoteList.setContent(#{@notes.last.id}, "#{escape_javascript(render 'notes/notes')}");
NoteList.setContent(#{@notes.first.id}, #{@notes.last.id}, "#{escape_javascript(render 'notes/notes')}");
- else
- if loading_more_notes?