From 52c881f7c12e803379a71e6d539a87e9112145e5 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Thu, 9 Apr 2015 10:48:17 +0200 Subject: [PATCH] SONAR-6403 It is impossible to search for "C" language on the rules page --- .../src/main/js/coding-rules/facets/custom-values-facet.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/sonar-web/src/main/js/coding-rules/facets/custom-values-facet.js b/server/sonar-web/src/main/js/coding-rules/facets/custom-values-facet.js index 000f4df5cad..c277cb7a25c 100644 --- a/server/sonar-web/src/main/js/coding-rules/facets/custom-values-facet.js +++ b/server/sonar-web/src/main/js/coding-rules/facets/custom-values-facet.js @@ -43,7 +43,7 @@ define([ prepareSearch: function () { this.$('.js-custom-value').select2({ placeholder: t('search_verb'), - minimumInputLength: 2, + minimumInputLength: 1, allowClear: false, formatNoMatches: function () { return t('select2.noMatches'); @@ -52,7 +52,7 @@ define([ return t('select2.searching'); }, formatInputTooShort: function () { - return tp('select2.tooShort', 2); + return tp('select2.tooShort', 1); }, width: '100%', ajax: this.prepareAjaxSearch() -- 2.39.5