parent
7701f87e82
commit
21e9bad6d5
@ -1,14 +1,26 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
define(['app', 'Episode/Layout'], function () {
|
define(['app', 'Episode/Layout'], function () {
|
||||||
NzbDrone.Series.Details.EpisodeDetailCell = Backgrid.Cell.extend({
|
NzbDrone.Series.Details.EpisodeStatusCell = Backgrid.Cell.extend({
|
||||||
|
|
||||||
events: {
|
events: {
|
||||||
'click': 'showDetails'
|
'click': 'showDetails'
|
||||||
},
|
},
|
||||||
render: function () {
|
render: function () {
|
||||||
this.$el.empty();
|
this.$el.empty();
|
||||||
this.$el.html('<i class="icon-ellipsis-vertical x-detail-icon"/>');
|
|
||||||
|
if (this.model) {
|
||||||
|
|
||||||
|
var icon;
|
||||||
|
|
||||||
|
if (this.model.get('episodeFile')) {
|
||||||
|
icon = 'icon-ok';
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
this.$el.html('<i class="{0}"/>'.format(icon));
|
||||||
|
}
|
||||||
|
|
||||||
return this;
|
return this;
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in new issue