aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/components/common
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-06-02 16:11:19 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-06-02 16:11:19 +0200
commit66a868f92cb3d10e054a5d8322f91d99bb6942d4 (patch)
tree05f6bf556dd6ff498788552e404ece528d12e2be /server/sonar-web/src/main/js/components/common
parentfb31400daf90743eeed0095a148f8888caab281c (diff)
downloadsonarqube-66a868f92cb3d10e054a5d8322f91d99bb6942d4.tar.gz
sonarqube-66a868f92cb3d10e054a5d8322f91d99bb6942d4.zip
SONAR-6602 use "q" for search
Diffstat (limited to 'server/sonar-web/src/main/js/components/common')
-rw-r--r--server/sonar-web/src/main/js/components/common/select-list.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/components/common/select-list.js b/server/sonar-web/src/main/js/components/common/select-list.js
index 480fbd9d690..5716ed2fa10 100644
--- a/server/sonar-web/src/main/js/components/common/select-list.js
+++ b/server/sonar-web/src/main/js/components/common/select-list.js
@@ -329,7 +329,8 @@ define(function () {
search: function () {
var query = this.$('.select-list-search-control input').val(),
hasQuery = query.length > 0,
- that = this;
+ that = this,
+ data = {};
this.$('.select-list-check-control').toggleClass('disabled', hasQuery);
this.$('.select-list-search-control').toggleClass('disabled', !hasQuery);
@@ -338,10 +339,11 @@ define(function () {
this.showFetchSpinner();
this.currentFilter = 'all';
+ data[this.settings.queryParam] = query;
this.collection.fetch({
url: this.settings.searchUrl,
reset: true,
- data: { query: query },
+ data: data,
success: function () {
that.hideFetchSpinner();
},
@@ -431,6 +433,8 @@ define(function () {
return r.results;
},
+ queryParam: 'query',
+
labels: {
selected: 'Selected',
deselected: 'Deselected',