mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 23:13:15 +00:00
18 lines
402 B
JavaScript
18 lines
402 B
JavaScript
define([
|
|
'underscore',
|
|
'backbone',
|
|
'models/dcField'
|
|
], function(_, Backbone, DcFieldModel) {
|
|
var DcFieldCollection = Backbone.Collection.extend({
|
|
model: DcFieldModel,
|
|
url: function() {
|
|
return '/admin/fields/dc-fields';
|
|
},
|
|
comparator: function(item) {
|
|
return item.get("label");
|
|
}
|
|
});
|
|
|
|
return DcFieldCollection;
|
|
});
|