diff options
Diffstat (limited to 'js/circles.v1.js')
-rw-r--r-- | js/circles.v1.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/js/circles.v1.js b/js/circles.v1.js index cfac5dbb..99b7d883 100644 --- a/js/circles.v1.js +++ b/js/circles.v1.js @@ -148,14 +148,14 @@ }; - - this.removeMember = function (circleId, userId, callback) { + this.removeMember = function (circleId, userId, userType, callback) { var result = {status: -1}; $.ajax({ method: 'DELETE', url: OC.generateUrl('/apps/circles/v1/circles/' + circleId + '/member'), data: { - member: userId + member: userId, + type: userType } }).done(function (res) { self.onCallback(callback, res); @@ -165,13 +165,14 @@ }; - this.levelMember = function (circleId, member, level, callback) { + this.levelMember = function (circleId, userId, userType, level, callback) { var result = {status: -1}; $.ajax({ method: 'POST', url: OC.generateUrl('/apps/circles/v1/circles/' + circleId + '/level'), data: { - member: member, + member: userId, + type: userType, level: level } }).done(function (res) { |