mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-16 07:08:55 +00:00
[groups] redesigned it.
This commit is contained in:
21
static/scripts/app/collections/groups.js
Normal file
21
static/scripts/app/collections/groups.js
Normal file
@@ -0,0 +1,21 @@
|
||||
define([
|
||||
'underscore',
|
||||
'backbone',
|
||||
'common',
|
||||
'app/models/group'
|
||||
], function(_, Backbone, Common, Group) {
|
||||
'use strict';
|
||||
|
||||
var GroupCollection = Backbone.Collection.extend({
|
||||
model: Group,
|
||||
comparator: function(a, b) {
|
||||
return Common.compareTwoWord(a.get('name'), b.get('name'));
|
||||
},
|
||||
|
||||
url: function() {
|
||||
return Common.getUrl({name: 'groups'});
|
||||
}
|
||||
});
|
||||
|
||||
return GroupCollection;
|
||||
});
|
Reference in New Issue
Block a user