mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 20:20:43 +08:00
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:
parent
50a44695ec
commit
cb6d1632ba
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user