mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-05 18:34:39 +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
1d95d4605e
@ -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