mirror of
https://github.com/flarum/framework.git
synced 2024-11-28 20:16:08 +08:00
Remember scroll position when returning to index
This commit is contained in:
parent
8d95e21d6e
commit
cf2361bda9
|
@ -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…
Reference in New Issue
Block a user