mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 09:17:30 +08:00
BUGFIX: Do not scroll to top / show spinner when leaving a topic.
This commit is contained in:
parent
c668d49822
commit
cae7af4b07
|
@ -66,7 +66,9 @@ Discourse.PosterExpansionController = Discourse.ObjectController.extend({
|
|||
},
|
||||
|
||||
cancelFilter: function() {
|
||||
this.get('postStream').cancelFilter();
|
||||
var postStream = this.get('postStream');
|
||||
postStream.cancelFilter();
|
||||
postStream.refresh();
|
||||
this.close();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -176,7 +176,7 @@ Discourse.PostStream = Em.Object.extend({
|
|||
|
||||
|
||||
/**
|
||||
Cancel any active filters on the stream and refresh it.
|
||||
Cancel any active filters on the stream.
|
||||
|
||||
@method cancelFilter
|
||||
@returns {Ember.Deferred} a promise that resolves when the filter has been cancelled.
|
||||
|
@ -184,7 +184,6 @@ Discourse.PostStream = Em.Object.extend({
|
|||
cancelFilter: function() {
|
||||
this.set('summary', false);
|
||||
this.get('userFilters').clear();
|
||||
return this.refresh();
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user