diff options
Diffstat (limited to 'server/sonar-web/src/main/js/apps/provisioning/projects.js')
-rw-r--r-- | server/sonar-web/src/main/js/apps/provisioning/projects.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/provisioning/projects.js b/server/sonar-web/src/main/js/apps/provisioning/projects.js index 05a59f822af..51697b78fc8 100644 --- a/server/sonar-web/src/main/js/apps/provisioning/projects.js +++ b/server/sonar-web/src/main/js/apps/provisioning/projects.js @@ -1,12 +1,13 @@ define([ + 'backbone', './project' -], function (Project) { +], function (Backbone, Project) { return Backbone.Collection.extend({ model: Project, url: function () { - return baseUrl + '/api/projects/provisioned'; + return window.baseUrl + '/api/projects/provisioned'; }, parse: function (r) { @@ -19,7 +20,7 @@ define([ fetch: function (options) { var d = (options && options.data) || {}; this.q = d.q; - return this._super(options); + return Backbone.Collection.prototype.fetch.apply(this, arguments); }, fetchMore: function () { |