Toggle episode monitored status from episode details

This commit is contained in:
Mark McDowall 2013-07-18 18:49:04 -07:00
commit 17ffdbc89e
4 changed files with 53 additions and 14 deletions

View file

@ -72,6 +72,10 @@ define(
_.each(this.episodeCollection.models, function (episode) {
episode.set({ hideSeriesLink: true, series: options.series });
});
this.episodeCollection.on('sync', function () {
this.render();
}, this);
},
onRender: function () {
@ -137,8 +141,6 @@ define(
},
_setSeasonMonitoredState: function () {
var monitored = this.model.get('monitored');
this.ui.seasonMonitored.removeClass('icon-spinner icon-spin');
if (this.model.get('monitored')) {

View file

@ -103,7 +103,7 @@ define(
_setMonitoredState: function () {
var monitored = this.model.get('monitored');
this.ui.monitored.removeClass('icon-spin');
this.ui.monitored.removeClass('icon-spin icon-spinner');
if (this.model.get('monitored')) {
this.ui.monitored.addClass('icon-bookmark');