mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-12 16:14:25 +03:00
Merge pull request #3819 from studioromeo/reset-preview-scroll-position
Reset preview scroll position when post item is clicked
This commit is contained in:
commit
7936fc7d12
@ -11,6 +11,10 @@ var PostContentView = Ember.View.extend({
|
||||
}));
|
||||
},
|
||||
|
||||
contentObserver: function () {
|
||||
this.$().closest('.content-preview').scrollTop(0);
|
||||
}.observes('controller.content'),
|
||||
|
||||
willDestroyElement: function () {
|
||||
var el = this.$();
|
||||
el.off('scroll');
|
||||
|
Loading…
Reference in New Issue
Block a user