From: Stas Vilchik Date: Thu, 9 Apr 2015 08:48:17 +0000 (+0200) Subject: SONAR-6403 It is impossible to search for "C" language on the rules page X-Git-Tag: 5.2-RC1~2327 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=52c881f7c12e803379a71e6d539a87e9112145e5;p=sonarqube.git SONAR-6403 It is impossible to search for "C" language on the rules page --- 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()