mirror of
https://github.com/Sonarr/Sonarr.git
synced 2024-12-16 11:37:58 +02:00
25 lines
776 B
JavaScript
25 lines
776 B
JavaScript
/// <reference path="../app.js" />
|
|
/// <reference path="AddNewSeries/AddNewSeriesView.js" />
|
|
/// <reference path="RootDir/RootDirView.js" />
|
|
|
|
NzbDrone.AddSeries.AddSeriesLayout = Backbone.Marionette.Layout.extend({
|
|
template: "AddSeries/addSeriesLayoutTemplate",
|
|
|
|
regions: {
|
|
addNew: "#add-new",
|
|
importExisting: "#import-existing",
|
|
rootFolders: "#root-folders"
|
|
},
|
|
|
|
onRender: function () {
|
|
this.$('#myTab a').click(function (e) {
|
|
e.preventDefault();
|
|
$(this).tab('show');
|
|
});
|
|
|
|
this.addNew.show(new NzbDrone.AddSeries.AddNewSeriesView());
|
|
//this.importExisting.show(new NzbDrone.ImportExistingView());
|
|
this.rootFolders.show(new NzbDrone.AddSeries.RootDirView());
|
|
},
|
|
|
|
}); |