|
|
@ -18,12 +18,25 @@ define(
|
|
|
|
var episodeField = this.column.get('episodes') || 'episodeNumber';
|
|
|
|
var episodeField = this.column.get('episodes') || 'episodeNumber';
|
|
|
|
|
|
|
|
|
|
|
|
if (this.model) {
|
|
|
|
if (this.model) {
|
|
|
|
|
|
|
|
var result = 'Unknown';
|
|
|
|
|
|
|
|
|
|
|
|
var airDate = this.model.get(airDateField);
|
|
|
|
var airDate = this.model.get(airDateField);
|
|
|
|
var seasonNumber = this.model.get(seasonField);
|
|
|
|
var seasonNumber = this.model.get(seasonField);
|
|
|
|
var episodes = this.model.get(episodeField);
|
|
|
|
var episodes = this.model.get(episodeField);
|
|
|
|
|
|
|
|
|
|
|
|
var result = 'Unknown';
|
|
|
|
if (this.cellValue) {
|
|
|
|
|
|
|
|
if (!seasonNumber) {
|
|
|
|
|
|
|
|
seasonNumber = this.cellValue.get(seasonField);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!episodes) {
|
|
|
|
|
|
|
|
episodes = this.cellValue.get(episodeField);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!airDate) {
|
|
|
|
|
|
|
|
this.model.get(airDateField);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if (episodes) {
|
|
|
|
if (episodes) {
|
|
|
|
|
|
|
|
|
|
|
|