Fix Regression: In reply to

This commit is contained in:
Robin Ward 2013-02-21 12:59:38 -05:00
parent f6263749d4
commit 6096a447b7

View File

@ -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 {