2013-06-24 23:41:59 +00:00
|
|
|
|
'use strict';
|
|
|
|
|
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,
|
|
|
|
|
url : window.ApiRoot + '/qualityprofiles'
|
|
|
|
|
});
|
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;
|
|
|
|
|
});
|