BUGFIX: Do not scroll to top / show spinner when leaving a topic.

This commit is contained in:
Robin Ward 2014-02-26 12:04:55 -05:00
parent c668d49822
commit cae7af4b07
2 changed files with 4 additions and 3 deletions

View File

@ -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();
}
}

View File

@ -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();
},
/**