FIX: Scroll to top on categories view, too.
This commit is contained in:
parent
578430fc1d
commit
701cf4a9b8
|
@ -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');
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue