aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web/src/main/js/apps/users/users.js
diff options
context:
space:
mode:
Diffstat (limited to 'server/sonar-web/src/main/js/apps/users/users.js')
-rw-r--r--server/sonar-web/src/main/js/apps/users/users.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/users/users.js b/server/sonar-web/src/main/js/apps/users/users.js
index 9c45979a9fe..1c199d05ace 100644
--- a/server/sonar-web/src/main/js/apps/users/users.js
+++ b/server/sonar-web/src/main/js/apps/users/users.js
@@ -1,12 +1,13 @@
define([
+ 'backbone',
'./user'
-], function (User) {
+], function (Backbone, User) {
return Backbone.Collection.extend({
model: User,
url: function () {
- return baseUrl + '/api/users/search';
+ return window.baseUrl + '/api/users/search';
},
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 () {