mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 22:12:00 +08:00
15 lines
355 B
CoffeeScript
15 lines
355 B
CoffeeScript
window.Discourse.ParentView = Discourse.EmbeddedPostView.extend
|
|
|
|
# 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()
|
|
|