FIX: Use site settings for min_search_term_length.

This commit is contained in:
Guo Xiang Tan 2015-08-14 15:56:01 +08:00
parent e82f892c2d
commit 9a3f7a1e44
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ export default Ember.View.extend({
templateName: 'search',
keyDown: function(e){
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');
}
}