removed episode status from server.

This commit is contained in:
kay.one
2013-05-20 14:05:48 -07:00
parent 7701f87e82
commit 21e9bad6d5
8 changed files with 14 additions and 132 deletions

View File

@@ -0,0 +1,32 @@
"use strict";
define(['app', 'Episode/Layout'], function () {
NzbDrone.Series.Details.EpisodeStatusCell = Backgrid.Cell.extend({
events: {
'click': 'showDetails'
},
render: function () {
this.$el.empty();
if (this.model) {
var icon;
if (this.model.get('episodeFile')) {
icon = 'icon-ok';
}
this.$el.html('<i class="{0}"/>'.format(icon));
}
return this;
},
showDetails: function () {
var view = new NzbDrone.Episode.Layout({ model: this.model });
NzbDrone.modalRegion.show(view);
}
});
});