finished add series,

still has a few rough edges but should be functional.
This commit is contained in:
Keivan Beigi 2013-05-27 19:05:34 -07:00
parent ea929974f3
commit 465dc725c8
11 changed files with 74 additions and 59 deletions

View file

@ -5,7 +5,7 @@ define([
'AddSeries/Existing/UnmappedFolderModel',
'AddSeries/Collection',
'AddSeries/SearchResultView',
'Series/SeriesModel'], function (app, rootFolders, qualityProfileCollection) {
'Series/SeriesModel'], function () {
NzbDrone.AddSeries.Existing.UnmappedFolderCompositeView = Backbone.Marionette.CompositeView.extend({
@ -31,9 +31,9 @@ define([
this.collection = new NzbDrone.AddSeries.Collection();
this.collection.bind('reset', this.collectionReset, this);
this.on("itemview:seriesAdded", function () {
this.on("item:removed", function () {
this.close();
});
}, this);
},
onRender: function () {
@ -53,7 +53,7 @@ define([
this.searchCollection.fetch({
data : { term: this.ui.searchText.val() },
success: function (collection) {
success: function () {
icon.removeClass('icon-spin icon-spinner disabled').addClass('icon-search');
deferred.resolve();
self.collection.add(self.searchCollection.shift());
@ -101,7 +101,7 @@ define([
return {
qualityProfile: this.ui.profileList,
rootFolder : this.model.get('rootFolder'),
folder : this.model.get('folder'),
folder : this.model.get('folder').path,
isExisting : true
};
}