mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 16:43:58 -07:00
much smarter handling of series collection rendering.
This commit is contained in:
parent
263700954e
commit
b9b9ad6fb5
10 changed files with 117 additions and 94 deletions
|
@ -73,9 +73,11 @@ define(
|
|||
|
||||
var self = this;
|
||||
|
||||
this.model.save(undefined, {
|
||||
url : SeriesCollection.prototype.url,
|
||||
success: function () {
|
||||
SeriesCollection.add(this.model);
|
||||
|
||||
|
||||
this.model.save()
|
||||
.done(function () {
|
||||
self.close();
|
||||
icon.removeClass('icon-spin icon-spinner disabled').addClass('icon-search');
|
||||
Messenger.show({
|
||||
|
@ -83,12 +85,10 @@ define(
|
|||
});
|
||||
|
||||
App.vent.trigger(App.Events.SeriesAdded, { series: self.model });
|
||||
self.model.collection.remove(self.model);
|
||||
},
|
||||
fail : function () {
|
||||
})
|
||||
.fail(function () {
|
||||
icon.removeClass('icon-spin icon-spinner disabled').addClass('icon-search');
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
|
||||
serializeData: function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue