You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
371 B
15 lines
371 B
var Backbone = require('backbone');
|
|
var TagModel = require('./TagModel');
|
|
var ApiData = require('../Shared/ApiData');
|
|
|
|
var Collection = Backbone.Collection.extend({
|
|
url : window.NzbDrone.ApiRoot + '/tag',
|
|
model : TagModel,
|
|
|
|
comparator : function(model) {
|
|
return model.get('label');
|
|
}
|
|
});
|
|
|
|
module.exports = new Collection(ApiData.get('tag'));
|