Migrate over slackRatio to vendored helper

This commit is contained in:
Robin Ward 2013-12-04 13:26:00 -05:00
parent 3a2ae97668
commit 2a809d7855
2 changed files with 5 additions and 1 deletions

View File

@ -219,6 +219,10 @@ Discourse.TopicController = Discourse.ObjectController.extend(Discourse.Selected
}, },
slackRatio: function() {
return Discourse.Capabilities.currentProp('slackRatio');
}.property(),
jumpTopDisabled: function() { jumpTopDisabled: function() {
return (this.get('progressPosition') <= 3); return (this.get('progressPosition') <= 3);
}.property('progressPosition'), }.property('progressPosition'),

View File

@ -64,7 +64,7 @@
{{/if}} {{/if}}
{{#unless postStream.loadingFilter}} {{#unless postStream.loadingFilter}}
{{cloaked-collection cloakView="post" idProperty="post_number" defaultHeight="200" content=postStream.posts}} {{cloaked-collection cloakView="post" idProperty="post_number" defaultHeight="200" content=postStream.posts slackRatio=slackRatio}}
{{/unless}} {{/unless}}
{{#if postStream.loadingBelow}} {{#if postStream.loadingBelow}}