|
|
@ -44,6 +44,8 @@ define(
|
|
|
|
this.listenTo(this.model, 'change:monitored', this._setMonitoredState);
|
|
|
|
this.listenTo(this.model, 'change:monitored', this._setMonitoredState);
|
|
|
|
this.listenTo(App.vent, App.Events.SeriesDeleted, this._onSeriesDeleted);
|
|
|
|
this.listenTo(App.vent, App.Events.SeriesDeleted, this._onSeriesDeleted);
|
|
|
|
this.listenTo(App.vent, App.Events.SeasonRenamed, this._onSeasonRenamed);
|
|
|
|
this.listenTo(App.vent, App.Events.SeasonRenamed, this._onSeasonRenamed);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
App.vent.on(App.Events.CommandComplete, this._commandComplete, this);
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
onShow: function () {
|
|
|
|
onShow: function () {
|
|
|
@ -195,6 +197,16 @@ define(
|
|
|
|
if (this.model.get('id') === event.series.get('id')) {
|
|
|
|
if (this.model.get('id') === event.series.get('id')) {
|
|
|
|
this.episodeFileCollection.fetch();
|
|
|
|
this.episodeFileCollection.fetch();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
_commandComplete: function (options) {
|
|
|
|
|
|
|
|
if (options.command.get('name') === 'refreshseries' || options.command.get('name') === 'renameseries') {
|
|
|
|
|
|
|
|
if (options.command.get('seriesId') === this.model.get('id')) {
|
|
|
|
|
|
|
|
this._showSeasons();
|
|
|
|
|
|
|
|
this._setMonitoredState();
|
|
|
|
|
|
|
|
this._showInfo();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|