summaryrefslogtreecommitdiff
path: root/app/views/notes/_load.js.haml
blob: 1f3559670d11c1eeaaf31c074e716aebe72b4b85 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
- unless @notes.blank?
  - if params[:last_id]
    :plain
      NoteList.replace("#{escape_javascript(render(:partial => 'notes/notes_list'))}");

  - elsif params[:first_id]
    :plain
      NoteList.append(#{@notes.last.id}, "#{escape_javascript(render(:partial => 'notes/notes_list'))}");

  - else
    :plain
      NoteList.setContent(#{@notes.last.id}, #{@notes.first.id}, "#{escape_javascript(render(:partial => 'notes/notes_list'))}");

- else
  - if params[:first_id]
    :plain
      NoteList.append(#{params[:first_id]}, "");