mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-28 15:03:58 -04:00
missing condition
This commit is contained in:
parent
e04d66aa2c
commit
0c403272e2
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ export default Em.Controller.extend(Presence, {
|
||||||
|
|
||||||
actions: {
|
actions: {
|
||||||
moreOfType: function(type) {
|
moreOfType: function(type) {
|
||||||
if (type === 'topic' && this.get('searchContext.type') !== 'topic') {
|
if (type === 'topic' && (!this.get('searchContextEnabled') || this.get('searchContext.type') !== 'topic')) {
|
||||||
var term = this.get('term');
|
var term = this.get('term');
|
||||||
// TODO in topic and in category special handling
|
// TODO in topic and in category special handling
|
||||||
Discourse.URL.routeTo("/search?q=" + encodeURIComponent(term));
|
Discourse.URL.routeTo("/search?q=" + encodeURIComponent(term));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue