mirror of
https://github.com/flarum/core.git
synced 2025-05-07 16:05:25 +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() {
|
didInsertElement: function() {
|
||||||
this.updateTitle();
|
this.updateTitle();
|
||||||
|
$(window).scrollTop(this.get('controller.scrollTop'));
|
||||||
|
},
|
||||||
|
|
||||||
|
willDestroyElement: function() {
|
||||||
|
this.set('controller.scrollTop', $(window).scrollTop());
|
||||||
},
|
},
|
||||||
|
|
||||||
updateTitle: function() {
|
updateTitle: function() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user