2013-06-24 16:41:59 -07:00
|
|
|
'use strict';
|
|
|
|
define(
|
|
|
|
[
|
|
|
|
'backbone',
|
|
|
|
'Quality/QualityProfileModel'
|
|
|
|
], function (Backbone, QualityProfileModel) {
|
2013-01-26 19:04:15 -08:00
|
|
|
|
2013-06-24 16:41:59 -07:00
|
|
|
var QualityProfileCollection = Backbone.Collection.extend({
|
|
|
|
model: QualityProfileModel,
|
|
|
|
url : window.ApiRoot + '/qualityprofiles'
|
|
|
|
});
|
2013-02-13 18:28:56 -08:00
|
|
|
|
2013-06-24 16:41:59 -07:00
|
|
|
var profiles = new QualityProfileCollection();
|
2013-02-14 18:40:29 -08:00
|
|
|
|
2013-06-24 16:41:59 -07:00
|
|
|
profiles.fetch();
|
2013-02-14 18:40:29 -08:00
|
|
|
|
2013-06-24 16:41:59 -07:00
|
|
|
return profiles;
|
|
|
|
});
|