1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-06-30 08:53:49 +00:00
seahub/static/scripts/app/collections/groups.js

22 lines
468 B
JavaScript
Raw Normal View History

2015-11-30 07:02:03 +00:00
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;
});