From e049cfaf3b46ab2061cf940d94b37ca2390bc5d1 Mon Sep 17 00:00:00 2001 From: Greg Price Date: Tue, 17 Jun 2014 11:36:47 -0400 Subject: [PATCH] Make "load more" in forums not appear incorrectly The rendering of the link happens in an event handler, and the collection's attributes were not getting set properly before the reset event triggering the rendering occurred. Originally reviewed in #4072 --- common/static/coffee/src/discussion/discussion.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/static/coffee/src/discussion/discussion.coffee b/common/static/coffee/src/discussion/discussion.coffee index 1e5fdd693b..8b6162f54b 100644 --- a/common/static/coffee/src/discussion/discussion.coffee +++ b/common/static/coffee/src/discussion/discussion.coffee @@ -62,9 +62,9 @@ if Backbone? new_threads = [new Thread(data) for data in response.discussion_data][0] new_collection = _.union(models, new_threads) Content.loadContentInfos(response.annotated_content_info) - @reset new_collection @pages = response.num_pages @current_page = response.page + @reset new_collection error: error sortByDate: (thread) ->