mirror of
https://github.com/Radarr/Radarr.git
synced 2024-11-17 00:13:15 +01:00
29 lines
751 B
JavaScript
29 lines
751 B
JavaScript
|
/// <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);
|
|||
|
},
|
|||
|
|
|||
|
});
|