19 lines
441 B
JavaScript
19 lines
441 B
JavaScript
'use strict';
|
|
define(
|
|
[
|
|
'backbone',
|
|
'Quality/QualityProfileModel'
|
|
], function (Backbone, QualityProfileModel) {
|
|
|
|
var QualityProfileCollection = Backbone.Collection.extend({
|
|
model: QualityProfileModel,
|
|
url : window.NzbDrone.ApiRoot + '/qualityprofiles'
|
|
});
|
|
|
|
var profiles = new QualityProfileCollection();
|
|
|
|
profiles.fetch();
|
|
|
|
return profiles;
|
|
});
|