1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-26 23:17:58 +00:00
seahub/static/scripts/app/collections/groups.js
2015-12-02 11:39:36 +08:00

22 lines
468 B
JavaScript

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