2013-02-14 02:28:56 +00:00
|
|
|
|
define(['app', 'Quality/QualityProfileModel'], function () {
|
2013-01-27 03:04:15 +00:00
|
|
|
|
|
2013-02-15 02:40:29 +00:00
|
|
|
|
var qualityProfileCollection = Backbone.Collection.extend({
|
2013-03-29 23:28:58 +00:00
|
|
|
|
model: NzbDrone.Quality.QualityProfileModel,
|
|
|
|
|
url : NzbDrone.Constants.ApiRoot + '/qualityprofiles'
|
2013-02-14 02:28:56 +00:00
|
|
|
|
});
|
|
|
|
|
|
2013-02-15 02:40:29 +00:00
|
|
|
|
var profiles = new qualityProfileCollection();
|
|
|
|
|
|
|
|
|
|
profiles.fetch();
|
|
|
|
|
|
|
|
|
|
return profiles;
|
2013-02-14 02:28:56 +00:00
|
|
|
|
});
|