From 6096a447b7c85fbd3cf3fe3ae1ee7ac07d2f828b Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Thu, 21 Feb 2013 12:59:38 -0500 Subject: [PATCH] Fix Regression: In reply to --- app/assets/javascripts/discourse/views/parent_view.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/assets/javascripts/discourse/views/parent_view.js b/app/assets/javascripts/discourse/views/parent_view.js index f292567538a..a9ca520929d 100644 --- a/app/assets/javascripts/discourse/views/parent_view.js +++ b/app/assets/javascripts/discourse/views/parent_view.js @@ -2,16 +2,14 @@ window.Discourse.ParentView = Discourse.EmbeddedPostView.extend({ previousPost: true, - /* Nice animation for when the replies appear - */ - + + // Nice animation for when the replies appear didInsertElement: function() { var $parentPost; this._super(); - $parentPost = this.get('postView').jQuery('section.parent-post'); - /* Animate unless we're on a touch device - */ + $parentPost = this.get('postView').$('section.parent-post'); + // Animate unless we're on a touch device if (Discourse.get('touch')) { return $parentPost.show(); } else {