2013-07-05 03:26:07 +00:00
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
define(
|
|
|
|
|
[
|
|
|
|
|
'marionette',
|
|
|
|
|
'Settings/MediaManagement/Naming/View',
|
|
|
|
|
'Settings/MediaManagement/Sorting/View',
|
|
|
|
|
'Settings/MediaManagement/FileManagement/View'
|
|
|
|
|
], function (Marionette, NamingView, SortingView, FileManagementView) {
|
|
|
|
|
return Marionette.Layout.extend({
|
|
|
|
|
template: 'Settings/MediaManagement/LayoutTemplate',
|
|
|
|
|
|
|
|
|
|
regions: {
|
|
|
|
|
episodeNaming : '#episode-naming',
|
|
|
|
|
sorting : '#sorting',
|
|
|
|
|
fileManagement : '#file-management'
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
initialize: function (options) {
|
|
|
|
|
this.settings = options.settings;
|
|
|
|
|
this.namingSettings = options.namingSettings;
|
|
|
|
|
},
|
|
|
|
|
|
2013-07-05 04:52:20 +00:00
|
|
|
|
onShow: function () {
|
2013-07-05 03:26:07 +00:00
|
|
|
|
this.episodeNaming.show(new NamingView({ model: this.namingSettings }));
|
|
|
|
|
this.sorting.show(new SortingView({ model: this.settings }));
|
|
|
|
|
this.fileManagement.show(new FileManagementView({ model: this.settings }));
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
|