You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
653 B
21 lines
653 B
var vent = require('vent');
|
|
var Marionette = require('marionette');
|
|
var NamingModel = require('../Settings/MediaManagement/Naming/NamingModel');
|
|
|
|
module.exports = Marionette.ItemView.extend({
|
|
template : 'Rename/RenamePreviewFormatViewTemplate',
|
|
|
|
templateHelpers : function() {
|
|
var type = this.model.get('seriesType');
|
|
return {
|
|
rename : this.naming.get('renameEpisodes'),
|
|
format : this.naming.get(type + 'EpisodeFormat')
|
|
};
|
|
},
|
|
|
|
initialize : function() {
|
|
this.naming = new NamingModel();
|
|
this.naming.fetch();
|
|
this.listenTo(this.naming, 'sync', this.render);
|
|
}
|
|
}); |