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