Radarr/NzbDrone.Web/_backboneApp/AddSeries/AddSeriesLayout.js

24 lines
724 B
JavaScript
Raw Normal View History

2013-01-22 23:58:08 +00:00
/// <reference path="../app.js" />
/// <reference path="AddNewSeries/AddNewSeriesView.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.RootFoldersView());
},
});