2013-01-23 02:58:08 +03:00
|
|
|
/// <reference path="../app.js" />
|
|
|
|
/// <reference path="AddNewSeries/AddNewSeriesView.js" />
|
2013-01-24 23:48:44 +03:00
|
|
|
/// <reference path="RootDir/RootDirView.js" />
|
2013-01-23 02:58:08 +03:00
|
|
|
|
|
|
|
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());
|
2013-01-24 23:48:44 +03:00
|
|
|
this.rootFolders.show(new NzbDrone.AddSeries.RootDirView());
|
2013-01-23 02:58:08 +03:00
|
|
|
},
|
|
|
|
|
|
|
|
});
|