FIX: Scroll to top on categories view, too.

This commit is contained in:
Robin Ward 2014-01-27 15:19:52 -05:00
parent 578430fc1d
commit 701cf4a9b8
1 changed files with 6 additions and 0 deletions

View File

@ -24,6 +24,12 @@ Discourse.DiscoveryCategoriesView = Discourse.View.extend({
});
},
_scrollTop: function() {
Em.run.schedule('afterRender', function() {
$(document).scrollTop(0);
});
}.on('didInsertElement'),
disableOrdering: function(){
this.rows().sortable("destroy").off('sortupdate');
},