FIX: stop suppressing browser search for short closed topics

If a topic is closed (or closed and reopened)
browser search was unconditionally suppressed
This commit is contained in:
Sam 2016-04-12 10:48:17 +10:00
parent 50a44695ec
commit cb6d1632ba
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ export default {
// If we're viewing a topic, only intercept search if there are cloaked posts // If we're viewing a topic, only intercept search if there are cloaked posts
if (showSearch && currentPath.match(/^topic\./)) { if (showSearch && currentPath.match(/^topic\./)) {
showSearch = $('.cooked').length < this.container.lookup('controller:topic').get('model.postStream.stream.length'); showSearch = $('.topic-post .cooked, .small-action:not(.time-gap)').length < this.container.lookup('controller:topic').get('model.postStream.stream.length');
} }
if (showSearch) { if (showSearch) {