mirror of
https://github.com/flarum/core.git
synced 2025-07-30 21:20:24 +02:00
Remember scroll position when returning to index
This commit is contained in:
@@ -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() {
|
||||
|
Reference in New Issue
Block a user