mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Category List and Topic View Integration Test
This commit is contained in:
@@ -22,6 +22,9 @@ Discourse = Ember.Application.createWithMixins({
|
||||
// The highest seen post number by topic
|
||||
highestSeenByTopic: {},
|
||||
|
||||
// Helps with integration tests
|
||||
URL_FIXTURES: {},
|
||||
|
||||
getURL: function(url) {
|
||||
|
||||
// If it's a non relative URL, return it.
|
||||
|
||||
@@ -388,7 +388,10 @@ Discourse.TopicView = Discourse.View.extend(Discourse.Scrolling, {
|
||||
|
||||
nonUrgentPositionUpdate: Discourse.debounce(function(opts) {
|
||||
Discourse.ScreenTrack.instance().scrolled();
|
||||
this.set('controller.currentPost', opts.currentPost);
|
||||
var model = this.get('controller.model');
|
||||
if (model) {
|
||||
this.set('controller.currentPost', opts.currentPost);
|
||||
}
|
||||
},500),
|
||||
|
||||
scrolled: function(){
|
||||
|
||||
Reference in New Issue
Block a user