mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -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
|
@ -1,9 +1,9 @@
|
|||
"use strict";
|
||||
define(['app',
|
||||
'AddSeries/RootFolders/RootFolderCollection',
|
||||
'AddSeries/SearchResultView',
|
||||
'Shared/SpinnerView',
|
||||
'AddSeries/Collection'], function () {
|
||||
'AddSeries/RootFolders/RootFolderCollection',
|
||||
'AddSeries/SearchResultView',
|
||||
'Shared/SpinnerView',
|
||||
'AddSeries/Collection'], function () {
|
||||
NzbDrone.AddSeries.AddSeriesView = Backbone.Marionette.Layout.extend({
|
||||
template: 'AddSeries/AddSeriesTemplate',
|
||||
|
||||
|
@ -16,18 +16,7 @@ define(['app',
|
|||
},
|
||||
|
||||
initialize: function () {
|
||||
|
||||
this.collection = new NzbDrone.AddSeries.Collection();
|
||||
NzbDrone.AddSeries.New.AddNewSeriesContext = this;
|
||||
|
||||
NzbDrone.vent.on(NzbDrone.Events.SeriesAdded, function (options) {
|
||||
if (!options.existing) {
|
||||
NzbDrone.AddSeries.New.AddNewSeriesContext.ui.seriesSearch.val('');
|
||||
|
||||
//Todo: Figure out why this is inconsistent
|
||||
options.series.collection.reset();
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
onRender: function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue