mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: Scroll to top on categories view, too.
This commit is contained in:
parent
578430fc1d
commit
701cf4a9b8
1 changed files with 6 additions and 0 deletions
|
@ -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 a new issue