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