mirror of
https://github.com/Radarr/Radarr.git
synced 2026-04-20 21:55:03 -04:00
code to support import existing series.
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
/// <reference path="../../app.js" />
|
||||
/// <reference path="../../Series/SeriesModel.js" />
|
||||
/// <reference path="../SearchResultCollection.js" />
|
||||
|
||||
NzbDrone.AddSeries.ExistingFolderItemView = Backbone.Marionette.ItemView.extend({
|
||||
|
||||
template: "AddSeries/ImportExistingSeries/ImportSeriesTemplate",
|
||||
|
||||
events: {
|
||||
//'click .x-add': 'add'
|
||||
},
|
||||
|
||||
});
|
||||
|
||||
NzbDrone.AddSeries.ExistingFolderListView = Backbone.Marionette.CollectionView.extend({
|
||||
|
||||
itemView: NzbDrone.AddSeries.ExistingFolderItemView,
|
||||
|
||||
initialize: function (options) {
|
||||
|
||||
if (this.collection === undefined) {
|
||||
throw "root folder collection is required.";
|
||||
}
|
||||
|
||||
this.listenTo(this.collection, 'reset', this.render, this);
|
||||
},
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user