sonarr-repo-only/UI/Settings/MediaManagement/MediaManagementLayout.js

32 lines
1.1 KiB
JavaScript
Raw Normal View History

2013-07-05 03:26:07 +00:00
"use strict";
define(
[
'marionette',
'Settings/MediaManagement/Naming/View',
'Settings/MediaManagement/Sorting/View',
2013-09-25 05:04:33 +00:00
'Settings/MediaManagement/FileManagement/FileManagementView'
2013-07-05 03:26:07 +00:00
], function (Marionette, NamingView, SortingView, FileManagementView) {
return Marionette.Layout.extend({
2013-09-25 05:04:33 +00:00
template: 'Settings/MediaManagement/MediaManagementLayoutTemplate',
2013-07-05 03:26:07 +00:00
regions: {
episodeNaming : '#episode-naming',
sorting : '#sorting',
fileManagement : '#file-management'
},
initialize: function (options) {
this.settings = options.settings;
this.namingSettings = options.namingSettings;
},
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 }));
}
});
});