mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 03:02:46 +08:00
Merge pull request #3654 from tgxworld/use_site_settings
FIX: Use site settings for min_search_term_length.
This commit is contained in:
commit
20a3b651f8
|
@ -5,7 +5,7 @@ export default Ember.View.extend({
|
||||||
templateName: 'search',
|
templateName: 'search',
|
||||||
keyDown: function(e){
|
keyDown: function(e){
|
||||||
var term = this.get('controller.term');
|
var term = this.get('controller.term');
|
||||||
if (e.which === 13 && term && term.length > 2) {
|
if (e.which === 13 && term && term.length >= Discourse.SiteSettings.min_search_term_length) {
|
||||||
this.get('controller').send('fullSearch');
|
this.get('controller').send('fullSearch');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user