2013-09-11 23:33:34 +00:00
|
|
|
|
'use strict';
|
2013-06-24 23:41:59 +00:00
|
|
|
|
define(
|
|
|
|
|
[
|
|
|
|
|
'backbone',
|
|
|
|
|
'Quality/QualityProfileModel'
|
|
|
|
|
], function (Backbone, QualityProfileModel) {
|
2013-01-27 03:04:15 +00:00
|
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
|
var QualityProfileCollection = Backbone.Collection.extend({
|
|
|
|
|
model: QualityProfileModel,
|
2013-09-14 07:10:19 +00:00
|
|
|
|
url : window.NzbDrone.ApiRoot + '/qualityprofiles'
|
2013-06-24 23:41:59 +00:00
|
|
|
|
});
|
2013-02-14 02:28:56 +00:00
|
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
|
var profiles = new QualityProfileCollection();
|
2013-02-15 02:40:29 +00:00
|
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
|
profiles.fetch();
|
2013-02-15 02:40:29 +00:00
|
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
|
return profiles;
|
|
|
|
|
});
|