added more import code in ui.

some jshint cleanup.
This commit is contained in:
kay.one
2013-01-29 22:52:31 -08:00
parent 572ef0743c
commit c511292abe
15 changed files with 112 additions and 91 deletions

View File

@@ -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);
},
}
});