|
|
|
@ -7,8 +7,17 @@ define(
|
|
|
|
|
return Marionette.ItemView.extend({
|
|
|
|
|
template: 'Series/Details/InfoViewTemplate',
|
|
|
|
|
|
|
|
|
|
initialize: function () {
|
|
|
|
|
initialize: function (options) {
|
|
|
|
|
this.episodeFileCollection = options.episodeFileCollection;
|
|
|
|
|
|
|
|
|
|
this.listenTo(this.model, 'change', this.render);
|
|
|
|
|
this.listenTo(this.episodeFileCollection, 'sync', this.render);
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
templateHelpers: function() {
|
|
|
|
|
return {
|
|
|
|
|
fileCount: this.episodeFileCollection.length
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|