Fix Regression: In reply to
This commit is contained in:
parent
f6263749d4
commit
6096a447b7
|
@ -2,16 +2,14 @@
|
||||||
|
|
||||||
window.Discourse.ParentView = Discourse.EmbeddedPostView.extend({
|
window.Discourse.ParentView = Discourse.EmbeddedPostView.extend({
|
||||||
previousPost: true,
|
previousPost: true,
|
||||||
/* Nice animation for when the replies appear
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
// Nice animation for when the replies appear
|
||||||
didInsertElement: function() {
|
didInsertElement: function() {
|
||||||
var $parentPost;
|
var $parentPost;
|
||||||
this._super();
|
this._super();
|
||||||
$parentPost = this.get('postView').jQuery('section.parent-post');
|
$parentPost = this.get('postView').$('section.parent-post');
|
||||||
/* Animate unless we're on a touch device
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
// Animate unless we're on a touch device
|
||||||
if (Discourse.get('touch')) {
|
if (Discourse.get('touch')) {
|
||||||
return $parentPost.show();
|
return $parentPost.show();
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue