2011-11-04 11:46:51 -04:00
|
|
|
- unless @notes.blank?
|
2012-02-27 12:05:27 -05:00
|
|
|
- if params[:last_id]
|
2011-11-04 11:46:51 -04:00
|
|
|
:plain
|
2012-02-27 12:05:27 -05:00
|
|
|
NoteList.replace("#{escape_javascript(render(:partial => 'notes/notes_list'))}");
|
2011-11-04 11:46:51 -04:00
|
|
|
|
2011-11-05 07:59:43 -04:00
|
|
|
- elsif params[:first_id]
|
2011-11-04 11:46:51 -04:00
|
|
|
:plain
|
|
|
|
NoteList.append(#{@notes.last.id}, "#{escape_javascript(render(:partial => 'notes/notes_list'))}");
|
|
|
|
|
2011-11-05 07:59:43 -04:00
|
|
|
- else
|
|
|
|
:plain
|
2012-02-27 12:05:27 -05:00
|
|
|
NoteList.setContent(#{@notes.last.id}, #{@notes.first.id}, "#{escape_javascript(render(:partial => 'notes/notes_list'))}");
|
2012-02-12 16:52:27 -05:00
|
|
|
|
|
|
|
- else
|
|
|
|
- if params[:first_id]
|
|
|
|
:plain
|
|
|
|
NoteList.append(#{params[:first_id]}, "");
|