mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-14 00:53:57 -07:00
Added events when series are added
This commit is contained in:
parent
6e88f55a54
commit
d663d9cd5a
4 changed files with 22 additions and 2 deletions
|
@ -13,6 +13,19 @@ define(['app', 'AddSeries/RootFolders/RootFolderCollection', 'AddSeries/New/Sear
|
|||
},
|
||||
collection: new NzbDrone.Series.SeriesCollection(),
|
||||
|
||||
initialize: function () {
|
||||
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 () {
|
||||
var self = this;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue