mirror of
https://github.com/flarum/core.git
synced 2025-05-06 15:35:38 +02:00
Remember scroll position when returning to index
This commit is contained in:
parent
cab17be53a
commit
3acf247c07
@ -4,6 +4,11 @@ export default Ember.View.extend({
|
||||
|
||||
didInsertElement: function() {
|
||||
this.updateTitle();
|
||||
$(window).scrollTop(this.get('controller.scrollTop'));
|
||||
},
|
||||
|
||||
willDestroyElement: function() {
|
||||
this.set('controller.scrollTop', $(window).scrollTop());
|
||||
},
|
||||
|
||||
updateTitle: function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user