mirror of
https://github.com/discourse/discourse.git
synced 2025-02-05 21:53:00 +08:00
14 lines
413 B
CoffeeScript
14 lines
413 B
CoffeeScript
window.Discourse.RepliesView = Ember.CollectionView.extend
|
|
templateName: 'replies'
|
|
tagName: 'section'
|
|
classNames: ['replies-list', 'embedded-posts', 'bottom']
|
|
itemViewClass: Discourse.EmbeddedPostView
|
|
|
|
repliesShown: (->
|
|
$this = @.$()
|
|
if @get('parentView.repliesShown')
|
|
Em.run.next -> $this.slideDown()
|
|
else
|
|
Em.run.next -> $this.slideUp()
|
|
).observes('parentView.repliesShown')
|