gitlabhq/app/views/notes/index.js.haml

16 lines
430 B
Text
Raw Normal View History

2012-09-14 05:05:37 +02:00
- unless @notes.blank?
var notesHtml = "#{escape_javascript(render 'notes/notes')}";
- new_note_ids = @notes.map(&:id)
2012-09-14 05:05:37 +02:00
- if loading_more_notes?
NoteList.appendMoreNotes(#{new_note_ids}, notesHtml);
2012-09-14 05:05:37 +02:00
- elsif loading_new_notes?
NoteList.replaceNewNotes(#{new_note_ids}, notesHtml);
2012-09-14 05:05:37 +02:00
- else
NoteList.setContent(#{new_note_ids}, notesHtml);
2012-09-14 05:05:37 +02:00
- else
- if loading_more_notes?
NoteList.finishedLoadingMore();