2013-08-05 12:09:41 +03:00
|
|
|
'use strict';
|
|
|
|
define(
|
|
|
|
[
|
|
|
|
'marionette',
|
|
|
|
'Series/SeriesCollection',
|
|
|
|
'Series/SeasonCollection',
|
|
|
|
'SeasonPass/SeriesCollectionView',
|
|
|
|
'Shared/LoadingView'
|
|
|
|
], function (Marionette,
|
|
|
|
SeriesCollection,
|
|
|
|
SeasonCollection,
|
|
|
|
SeriesCollectionView,
|
|
|
|
LoadingView) {
|
|
|
|
return Marionette.Layout.extend({
|
|
|
|
template: 'SeasonPass/LayoutTemplate',
|
|
|
|
|
|
|
|
regions: {
|
|
|
|
series: '#x-series'
|
|
|
|
},
|
|
|
|
|
|
|
|
onShow: function () {
|
|
|
|
var self = this;
|
|
|
|
|
|
|
|
this.series.show(new LoadingView());
|
|
|
|
|
|
|
|
this.seriesCollection = SeriesCollection;
|
|
|
|
|
2013-09-10 08:22:38 +03:00
|
|
|
self.series.show(new SeriesCollectionView({
|
|
|
|
collection: self.seriesCollection
|
|
|
|
}));
|
2013-08-05 12:09:41 +03:00
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|