1
0
mirror of https://github.com/Radarr/Radarr.git synced 2026-04-24 22:35:49 -04:00

rjs -> webpack

This commit is contained in:
Keivan Beigi
2015-02-02 17:18:45 -08:00
parent 344f3d66ef
commit 428a1439e5
399 changed files with 11591 additions and 16139 deletions
+18 -26
View File
@@ -1,27 +1,19 @@
'use strict';
define(
[
'vent',
'marionette',
'Settings/MediaManagement/Naming/NamingModel'
], function (vent, Marionette, NamingModel) {
return Marionette.ItemView.extend({
template: 'Rename/RenamePreviewFormatViewTemplate',
var vent = require('../vent');
var Marionette = require('marionette');
var NamingModel = require('../Settings/MediaManagement/Naming/NamingModel');
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);
}
});
});
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);
}
});