gitlabhq/app/views/notes/_load.js.haml
Dmitriy Zaporozhets 1e689bfba3 fixed notes logic
2012-02-27 19:05:27 +02:00

18 lines
537 B
Plaintext

- 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]}, "");