Fixed: Add series won't incorrectly mark the series as existing when it fails to add

This commit is contained in:
Mark McDowall 2013-12-27 14:27:27 -08:00
parent d494023504
commit d9b9ffe8a2
1 changed files with 2 additions and 3 deletions

View File

@ -147,12 +147,11 @@ define(
this.model.set('seasonFolder', seasonFolder);
var self = this;
SeriesCollection.add(this.model);
var promise = this.model.save();
promise.done(function () {
SeriesCollection.add(self.model);
self.close();
icon.removeClass('icon-spin icon-spinner disabled').addClass('icon-search');