Commit 45431ae7 by Rocky Duan

scroll to top after reloading threads

parent e347c98e
...@@ -45,6 +45,7 @@ class @DiscussionView extends Backbone.View ...@@ -45,6 +45,7 @@ class @DiscussionView extends Backbone.View
@model.reset(response.discussionData, { silent: false }) @model.reset(response.discussionData, { silent: false })
view = new DiscussionView el: $discussion[0], model: @model view = new DiscussionView el: $discussion[0], model: @model
DiscussionUtil.bulkUpdateContentInfo(window.$$annotated_content_info) DiscussionUtil.bulkUpdateContentInfo(window.$$annotated_content_info)
$("html, body").animate({ scrollTop: 0 }, 0)
loadSimilarPost: (event) -> loadSimilarPost: (event) ->
$title = @$(".new-post-title") $title = @$(".new-post-title")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment