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

[system admin] added 'address book'

This commit is contained in:
llj
2018-01-04 17:06:34 +08:00
parent f0a60418e4
commit 5d2aa8af05
11 changed files with 749 additions and 12 deletions

View File

@@ -0,0 +1,28 @@
define([
'underscore',
'backbone',
'common'
], function(_, Backbone, Common) {
'use strict';
var collection = Backbone.Collection.extend({
setOptions: function(options) {
this.options = options;
},
url: function() {
return Common.getUrl({
name: 'admin-address-book-group',
group_id: this.options.group_id
});
},
parse: function(data) {
this.data = data;
return data.groups;
}
});
return collection;
});