rootfolder is linked to add series.

This commit is contained in:
kay.one
2013-01-26 18:14:42 -08:00
parent bf50c5989a
commit 1024e0f83d
10 changed files with 102 additions and 52 deletions

View File

@@ -0,0 +1,25 @@
/// <reference path="../../app.js" />
/// <reference path="../SearchResultModel.js" />
/// <reference path="../SearchResultCollection.js" />
NzbDrone.AddSeries.SearchItemView = Backbone.Marionette.ItemView.extend({
template: "AddSeries/AddNewSeries/SearchResultTemplate",
className: 'search-item accordion-group',
onRender: function () {
this.listenTo(this.model, 'change', this.render);
}
});
NzbDrone.AddSeries.SearchResultView = Backbone.Marionette.CollectionView.extend({
itemView: NzbDrone.AddSeries.SearchItemView,
className: 'accordion',
initialize: function () {
this.listenTo(this.collection, 'reset', this.render);
},
});