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:
28
static/scripts/sysadmin-app/collection/address-book-group.js
Normal file
28
static/scripts/sysadmin-app/collection/address-book-group.js
Normal 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;
|
||||
});
|
Reference in New Issue
Block a user