From 07ba92ba879130177434278ba0a1a5ac3d74191f Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 17 Jul 2013 22:02:19 -0700 Subject: [PATCH] Episode status cell shows TBA for episodes that do not have an air date --- UI/Cells/EpisodeStatusCell.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/UI/Cells/EpisodeStatusCell.js b/UI/Cells/EpisodeStatusCell.js index 8d3b3d74b..8fa3855a2 100644 --- a/UI/Cells/EpisodeStatusCell.js +++ b/UI/Cells/EpisodeStatusCell.js @@ -25,7 +25,12 @@ define( tooltip = 'Episode downloaded'; } else { - if (hasAired) { + if (!this.model.get('airDate')) { + icon = 'icon-question-sign'; + tooltip = 'TBA'; + } + + else if (hasAired) { icon = 'icon-warning-sign'; tooltip = 'Episode missing from disk'; } @@ -34,7 +39,7 @@ define( tooltip = 'Episode has not aired'; } } - + this.$el.html(''.format(icon, tooltip)); }