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:
@@ -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) {
|
||||
|
Reference in New Issue
Block a user