2013-06-25 07:21:10 +00:00
|
|
|
|
"use strict";
|
|
|
|
|
|
2013-06-24 23:41:59 +00:00
|
|
|
|
define(
|
|
|
|
|
[
|
|
|
|
|
'marionette',
|
|
|
|
|
'Quality/QualityProfileCollection',
|
|
|
|
|
'Settings/Quality/Profile/QualityProfileCollectionView',
|
|
|
|
|
'Quality/QualitySizeCollection',
|
|
|
|
|
'Settings/Quality/Size/QualitySizeCollectionView'
|
|
|
|
|
], function (Marionette, QualityProfileCollection, QualityProfileCollectionView, QualitySizeCollection, QualitySizeCollectionView) {
|
2013-06-19 01:02:23 +00:00
|
|
|
|
return Marionette.Layout.extend({
|
2013-03-07 08:01:18 +00:00
|
|
|
|
template: 'Settings/Quality/QualityLayoutTemplate',
|
|
|
|
|
|
|
|
|
|
regions: {
|
2013-03-29 23:28:58 +00:00
|
|
|
|
qualityProfile : '#quality-profile',
|
|
|
|
|
qualitySize : '#quality-size'
|
2013-03-07 08:01:18 +00:00
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
initialize: function (options) {
|
|
|
|
|
this.settings = options.settings;
|
2013-06-19 01:02:23 +00:00
|
|
|
|
QualityProfileCollection.fetch();
|
|
|
|
|
this.qualitySizeCollection = new QualitySizeCollection();
|
2013-03-07 08:01:18 +00:00
|
|
|
|
this.qualitySizeCollection.fetch();
|
|
|
|
|
},
|
|
|
|
|
|
2013-07-05 04:52:20 +00:00
|
|
|
|
onShow: function () {
|
2013-06-19 01:02:23 +00:00
|
|
|
|
this.qualityProfile.show(new QualityProfileCollectionView({collection: QualityProfileCollection}));
|
|
|
|
|
this.qualitySize.show(new QualitySizeCollectionView({collection: this.qualitySizeCollection}));
|
2013-03-07 08:01:18 +00:00
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|