mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 17:13:49 -07:00
finished add series,
still has a few rough edges but should be functional.
This commit is contained in:
parent
ea929974f3
commit
465dc725c8
11 changed files with 74 additions and 59 deletions
|
@ -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
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue