mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 05:53:13 +00:00
Add admin field application
This commit is contained in:

committed by
Romain Neutron

parent
7199d38ab3
commit
05dc3659af
17
www/scripts/apps/admin/fields/collections/dcFields.js
Normal file
17
www/scripts/apps/admin/fields/collections/dcFields.js
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
});
|
Reference in New Issue
Block a user