1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/Settings/Quality/QualityLayout.js

34 lines
1.2 KiB
JavaScript
Raw Normal View History

2013-06-22 09:24:24 +03:00
'use strict';
2013-05-02 01:42:30 +03:00
define([
'app',
2013-06-19 04:02:23 +03:00
'marionette',
'Quality/QualityProfileCollection',
'Settings/Quality/Profile/QualityProfileCollectionView',
2013-06-19 04:02:23 +03:00
'Quality/QualitySizeCollection',
'Settings/Quality/Size/QualitySizeCollectionView'
],
2013-06-19 04:02:23 +03:00
function (App, Marionette, QualityProfileCollection, QualityProfileCollectionView, QualitySizeCollection, QualitySizeCollectionView) {
return Marionette.Layout.extend({
template: 'Settings/Quality/QualityLayoutTemplate',
regions: {
qualityStandard: '#quality-standard',
qualityProfile : '#quality-profile',
qualitySize : '#quality-size'
},
initialize: function (options) {
this.settings = options.settings;
2013-06-19 04:02:23 +03:00
QualityProfileCollection.fetch();
this.qualitySizeCollection = new QualitySizeCollection();
this.qualitySizeCollection.fetch();
},
onRender: function () {
2013-06-19 04:02:23 +03:00
this.qualityProfile.show(new QualityProfileCollectionView({collection: QualityProfileCollection}));
this.qualitySize.show(new QualitySizeCollectionView({collection: this.qualitySizeCollection}));
}
});
});