]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6403 It is impossible to search for "C" language on the rules page
authorStas Vilchik <vilchiks@gmail.com>
Thu, 9 Apr 2015 08:48:17 +0000 (10:48 +0200)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 9 Apr 2015 08:48:17 +0000 (10:48 +0200)
server/sonar-web/src/main/js/coding-rules/facets/custom-values-facet.js

index 000f4df5cad4131be22801da5b24504e00b708ca..c277cb7a25c6f5be061aedb86ca9e1c082cee913 100644 (file)
@@ -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()