Remember scroll position when returning to index

This commit is contained in:
Toby Zerner 2015-02-06 10:36:30 +10:30
parent 8d95e21d6e
commit cf2361bda9

View File

@ -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() {