From f028d2338ed17ac68a0fadbd81290f41ae400102 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 28 Jun 2013 11:25:09 -0700 Subject: [PATCH] Default episode title to TBA if empty --- UI/Cells/EpisodeTitleCell.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/UI/Cells/EpisodeTitleCell.js b/UI/Cells/EpisodeTitleCell.js index 7226e145f..9164b5bdc 100644 --- a/UI/Cells/EpisodeTitleCell.js +++ b/UI/Cells/EpisodeTitleCell.js @@ -20,7 +20,13 @@ define( }, render: function () { - this.$el.html(this.cellValue.get('title')); + var title = this.cellValue.get('title'); + + if (!title || title === '') { + title = 'TBA'; + } + + this.$el.html(title); return this; } });