mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 04:23:19 +00:00
27 lines
603 B
JavaScript
27 lines
603 B
JavaScript
/*
|
|
* This file is part of Phraseanet
|
|
*
|
|
* (c) 2005-2013 Alchemy
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
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;
|
|
});
|