1
0
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:
llj
2015-11-30 15:02:03 +08:00
parent 8b55b2ffaf
commit 1c18e3e716
17 changed files with 401 additions and 204 deletions

View 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;
});