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