mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-24 22:35:49 -04:00
UI Cleanup - Updated Rename and SeasonPass subtrees.
This commit is contained in:
@@ -3,15 +3,17 @@ var Marionette = require('marionette');
|
||||
var NamingModel = require('../Settings/MediaManagement/Naming/NamingModel');
|
||||
|
||||
module.exports = Marionette.ItemView.extend({
|
||||
template : 'Rename/RenamePreviewFormatViewTemplate',
|
||||
templateHelpers : function(){
|
||||
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(){
|
||||
|
||||
initialize : function() {
|
||||
this.naming = new NamingModel();
|
||||
this.naming.fetch();
|
||||
this.listenTo(this.naming, 'sync', this.render);
|
||||
|
||||
Reference in New Issue
Block a user