mirror of
https://github.com/Prowlarr/Prowlarr
synced 2026-04-14 17:00:48 +02:00
18 lines
No EOL
512 B
JavaScript
18 lines
No EOL
512 B
JavaScript
var Marionette = require('marionette');
|
|
|
|
module.exports = Marionette.ItemView.extend({
|
|
template : 'Series/Details/InfoViewTemplate',
|
|
|
|
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
|
|
};
|
|
}
|
|
}); |