summaryrefslogtreecommitdiff
path: root/app/views/notes/index.js.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-19 12:34:14 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-03-19 12:34:14 +0200
commit5bf3a898edbbd0fc4f7a4557f6ffaea8ffabfbc7 (patch)
tree8e04d6b7e9f815e95343ce64de6c12e0998cf67b /app/views/notes/index.js.haml
parent1752c6dc8b755bc2fbff2757e8549521b0823048 (diff)
downloadgitlab-ce-5bf3a898edbbd0fc4f7a4557f6ffaea8ffabfbc7.tar.gz
Remove wall from basic notes logic
Diffstat (limited to 'app/views/notes/index.js.haml')
-rw-r--r--app/views/notes/index.js.haml13
1 files changed, 1 insertions, 12 deletions
diff --git a/app/views/notes/index.js.haml b/app/views/notes/index.js.haml
index f0826100fbf..826862b1a86 100644
--- a/app/views/notes/index.js.haml
+++ b/app/views/notes/index.js.haml
@@ -1,15 +1,4 @@
- unless @notes.blank?
var notesHtml = "#{escape_javascript(render 'notes/notes')}";
- new_note_ids = @notes.map(&:id)
- - if loading_more_notes?
- NoteList.appendMoreNotes(#{new_note_ids}, notesHtml);
-
- - elsif loading_new_notes?
- NoteList.replaceNewNotes(#{new_note_ids}, notesHtml);
-
- - else
- NoteList.setContent(#{new_note_ids}, notesHtml);
-
-- else
- - if loading_more_notes?
- NoteList.finishedLoadingMore();
+ NoteList.setContent(#{new_note_ids}, notesHtml);