This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/views/parent_view.js.coffee
2013-02-15 15:17:57 -05:00

17 lines
373 B
CoffeeScript

window.Discourse.ParentView = Discourse.EmbeddedPostView.extend
previousPost: true
# Nice animation for when the replies appear
didInsertElement: ->
@_super()
$parentPost = @get('postView').$('section.parent-post')
# Animate unless we're on a touch device
if Discourse.get('touch')
$parentPost.show()
else
$parentPost.slideDown()