mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-16 10:03:51 -07:00
fixed add series.
This commit is contained in:
parent
951e083756
commit
1f94e2b55f
2 changed files with 7 additions and 15 deletions
|
@ -13,6 +13,8 @@ define([
|
|||
|
||||
addSeries:function () {
|
||||
|
||||
var self = this;
|
||||
|
||||
var seriesId = this.model.get('id');
|
||||
var title = this.model.get('seriesName');
|
||||
var quality = this.options.qualityProfile.val();
|
||||
|
@ -25,23 +27,10 @@ define([
|
|||
path:path
|
||||
});
|
||||
|
||||
var self = this;
|
||||
|
||||
var seriesCollection = new NzbDrone.Series.SeriesCollection();
|
||||
seriesCollection.add(model);
|
||||
|
||||
seriesCollection.add(model, {success:function () {
|
||||
var notificationModel = new NzbDrone.Shared.NotificationModel({
|
||||
title:'Added',
|
||||
message:title,
|
||||
level:'success'
|
||||
});
|
||||
|
||||
notificationCollection.push(notificationModel);
|
||||
self.close();
|
||||
}
|
||||
});
|
||||
|
||||
return;
|
||||
model.save(undefined, {
|
||||
success:function () {
|
||||
var notificationModel = new NzbDrone.Shared.NotificationModel({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue