diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2016-03-29 13:41:47 +0200 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-03-31 13:09:07 +0200 |
commit | 3142e872bcfa1eba2940efa4e4b45612bfc1dd64 (patch) | |
tree | b4c75819c85e0729d55fccd76660bcee0f8a068b /server/sonar-web/src/main/js/apps/groups | |
parent | 491644917a5ebb44429ef45ee1885ed9728daf56 (diff) | |
download | sonarqube-3142e872bcfa1eba2940efa4e4b45612bfc1dd64.tar.gz sonarqube-3142e872bcfa1eba2940efa4e4b45612bfc1dd64.zip |
SONAR-7494 Web: Reintroduce the web app context
Diffstat (limited to 'server/sonar-web/src/main/js/apps/groups')
-rw-r--r-- | server/sonar-web/src/main/js/apps/groups/group.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/groups/groups.js | 2 | ||||
-rw-r--r-- | server/sonar-web/src/main/js/apps/groups/users-view.js | 6 |
3 files changed, 5 insertions, 5 deletions
diff --git a/server/sonar-web/src/main/js/apps/groups/group.js b/server/sonar-web/src/main/js/apps/groups/group.js index 9c80986eaa1..f1e9ff54f88 100644 --- a/server/sonar-web/src/main/js/apps/groups/group.js +++ b/server/sonar-web/src/main/js/apps/groups/group.js @@ -22,7 +22,7 @@ import Backbone from 'backbone'; export default Backbone.Model.extend({ urlRoot () { - return '/api/user_groups'; + return window.baseUrl + '/api/user_groups'; }, sync (method, model, options) { diff --git a/server/sonar-web/src/main/js/apps/groups/groups.js b/server/sonar-web/src/main/js/apps/groups/groups.js index e3e18d3bf48..73c1886f081 100644 --- a/server/sonar-web/src/main/js/apps/groups/groups.js +++ b/server/sonar-web/src/main/js/apps/groups/groups.js @@ -24,7 +24,7 @@ export default Backbone.Collection.extend({ model: Group, url () { - return '/api/user_groups/search'; + return window.baseUrl + '/api/user_groups/search'; }, parse (r) { diff --git a/server/sonar-web/src/main/js/apps/groups/users-view.js b/server/sonar-web/src/main/js/apps/groups/users-view.js index 894b7f9a206..63615a330b3 100644 --- a/server/sonar-web/src/main/js/apps/groups/users-view.js +++ b/server/sonar-web/src/main/js/apps/groups/users-view.js @@ -35,9 +35,9 @@ export default Modal.extend({ return `${item.name}<br><span class="note">${item.login}</span>`; }, queryParam: 'q', - searchUrl: '/api/user_groups/users?ps=100&id=' + this.model.id, - selectUrl: '/api/user_groups/add_user', - deselectUrl: '/api/user_groups/remove_user', + searchUrl: window.baseUrl + '/api/user_groups/users?ps=100&id=' + this.model.id, + selectUrl: window.baseUrl + '/api/user_groups/add_user', + deselectUrl: window.baseUrl + '/api/user_groups/remove_user', extra: { id: this.model.id }, |