1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

[org admin] added 'address-book'

This commit is contained in:
llj
2018-08-07 17:05:41 +08:00
parent 0105e8e8ef
commit ff90c7cfb4
16 changed files with 588 additions and 266 deletions

View File

@@ -7,7 +7,18 @@ define([
var collection = Backbone.Collection.extend({
url: function() {
return Common.getUrl({name: 'admin-address-book-groups'});
var url_options;
if (app.pageOptions.org_id) { // org admin
url_options = {
name: 'org-admin-address-book-groups',
org_id: app.pageOptions.org_id
};
} else {
url_options = {
name: 'admin-address-book-groups'
};
}
return Common.getUrl(url_options);
},
parse: function(data) {