mirror of
https://github.com/haiwen/seahub.git
synced 2025-06-26 23:17:58 +00:00
22 lines
468 B
JavaScript
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;
|
|
});
|