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