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

admin search group by name

This commit is contained in:
lian
2017-01-19 17:24:00 +08:00
parent 622fe2705e
commit d43a2e5eb3
9 changed files with 236 additions and 5 deletions

View File

@@ -0,0 +1,24 @@
define([
'underscore',
'backbone',
'common',
'sysadmin-app/models/group'
], function(_, Backbone, Common, GroupModel) {
'use strict';
var GroupCollection = Backbone.Collection.extend({
model: GroupModel,
url: function () {
return Common.getUrl({name: 'admin-groups'});
},
parse: function(data) {
this.search_name = data.name;
return data.groups;
}
});
return GroupCollection;
});