Files
Phraseanet/www/scripts/apps/admin/fields/collections/vocabularies.js
Nicolas Le Goff b52e4ee8c0 Address PR comment's
Fix tests
2013-05-27 23:26:49 +02:00

27 lines
620 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/vocabulary"
], function(_, Backbone, VocabularyModel) {
var VocabularyCollection = Backbone.Collection.extend({
model: VocabularyModel,
url: function() {
return "/admin/fields/vocabularies";
},
comparator: function(item) {
return item.get("name");
}
});
return VocabularyCollection;
});