diff options
author | Jean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com> | 2013-08-09 17:33:08 +0200 |
---|---|---|
committer | Jean-Baptiste Vilain <jean-baptiste.vilain@sonarsource.com> | 2013-08-09 17:33:08 +0200 |
commit | fabca195200bd227d5347d1dc1b47b3caee4fb4f (patch) | |
tree | c2d8ead2fb01517ab5797439dffc4f405ccd8d95 /sonar-server | |
parent | 30c3ccb18652f9bc5bb5108a2a80a07199cc9008 (diff) | |
download | sonarqube-fabca195200bd227d5347d1dc1b47b3caee4fb4f.tar.gz sonarqube-fabca195200bd227d5347d1dc1b47b3caee4fb4f.zip |
SONAR-3791 Allow users to search for projects by typing only 2 chars in the header search box
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/models/resource_index.rb | 2 | ||||
-rw-r--r-- | sonar-server/src/main/webapp/javascripts/application.js | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/resource_index.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/resource_index.rb index 84ff6f3571e..242e7abacad 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/resource_index.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/resource_index.rb @@ -24,7 +24,7 @@ class ResourceIndex < ActiveRecord::Base belongs_to :resource, :class_name => 'Project', :foreign_key => 'resource_id' belongs_to :root_project, :class_name => 'Project', :foreign_key => 'root_project_id' - MIN_SEARCH_SIZE=3 + MIN_SEARCH_SIZE=2 def resource_id_for_authorization root_project_id diff --git a/sonar-server/src/main/webapp/javascripts/application.js b/sonar-server/src/main/webapp/javascripts/application.js index 857298a34da..3f687bde1a4 100644 --- a/sonar-server/src/main/webapp/javascripts/application.js +++ b/sonar-server/src/main/webapp/javascripts/application.js @@ -25,7 +25,7 @@ function autocompleteResources() { $('searchInput').value = ''; new Ajax.Autocompleter('searchInput', 'searchResourcesResults', baseUrl + '/search', { method: 'post', - minChars: 3, + minChars: 2, indicator: 'searchingResources', paramName: 's', updateElement: function (item) { |