aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/quality-gates/condition.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/quality-gates/condition.js')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-gates/condition.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-gates/condition.js b/server/sonar-web/src/main/js/apps/quality-gates/condition.js
index 9ca451ee5a0..bb14f8226c0 100644
--- a/server/sonar-web/src/main/js/apps/quality-gates/condition.js
+++ b/server/sonar-web/src/main/js/apps/quality-gates/condition.js
@@ -1,4 +1,6 @@
-define(function () {
+define([
+ 'backbone'
+], function (Backbone) {
return Backbone.Model.extend({
@@ -7,7 +9,7 @@ define(function () {
},
url: function () {
- return baseUrl + '/api/qualitygates';
+ return window.baseUrl + '/api/qualitygates';
},
createUrl: function () {