From 9a3f7a1e4456dbaba62753d349616013e3a588c4 Mon Sep 17 00:00:00 2001 From: Guo Xiang Tan Date: Fri, 14 Aug 2015 15:56:01 +0800 Subject: [PATCH] FIX: Use site settings for min_search_term_length. --- app/assets/javascripts/discourse/views/search.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/views/search.js.es6 b/app/assets/javascripts/discourse/views/search.js.es6 index a9ec93319f8..861a29305f4 100644 --- a/app/assets/javascripts/discourse/views/search.js.es6 +++ b/app/assets/javascripts/discourse/views/search.js.es6 @@ -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'); } }