mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-27 20:44:00 +02:00
added more import code in ui.
some jshint cleanup.
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
/// <reference path="../../app.js" />
|
||||
'use strict';
|
||||
/*global NzbDrone, Backbone*/
|
||||
|
||||
/// <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) {
|
||||
initialize: function () {
|
||||
|
||||
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