From 6838298dbc98994686c6e0448cb9ab0e5891467b Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Sun, 9 Jun 2013 22:37:41 -0700 Subject: [PATCH] basic width styling for common cells --- UI/Cells/RelativeDateCell.js | 6 ++++-- UI/Cells/cells.less | 12 ++++++++++++ UI/Series/EpisodeModel.js | 8 +++++--- 3 files changed, 21 insertions(+), 5 deletions(-) diff --git a/UI/Cells/RelativeDateCell.js b/UI/Cells/RelativeDateCell.js index 6db0cc95c..5dffc0cd6 100644 --- a/UI/Cells/RelativeDateCell.js +++ b/UI/Cells/RelativeDateCell.js @@ -1,6 +1,8 @@ "use strict"; -define(['app'], function () { - NzbDrone.Cells.RelativeDateCell = Backgrid.Cell.extend({ +define(['app','Cells/NzbDroneCell'], function () { + NzbDrone.Cells.RelativeDateCell = NzbDrone.Cells.NzbDroneCell.extend({ + + className : 'relative-date-cell', render: function () { diff --git a/UI/Cells/cells.less b/UI/Cells/cells.less index 1bf0b98a1..f4efe0cc4 100644 --- a/UI/Cells/cells.less +++ b/UI/Cells/cells.less @@ -5,3 +5,15 @@ .episode-title-cell { .btn-link; } + +.air-date-cell { + width: 100px; +} + +.relative-date-cell { + width: 150px; +} + +.quality-cell{ + width: 130px; +} diff --git a/UI/Series/EpisodeModel.js b/UI/Series/EpisodeModel.js index 9bd6a3523..d98fcbd9f 100644 --- a/UI/Series/EpisodeModel.js +++ b/UI/Series/EpisodeModel.js @@ -74,9 +74,11 @@ define(['app', 'Series/SeriesModel'], function () { json[name] = _.bind(this.mutators[name], this)(); } }, this)); - - json.series = this.get('series').toJSON(); - + + if (this.has('series')) + { + json.series = this.get('series').toJSON(); + } return json; },