From 2d9285eee29d96b6eedee98e358aa76c32c2998f Mon Sep 17 00:00:00 2001 From: "kay.one" Date: Mon, 4 Apr 2011 00:51:58 -0700 Subject: [PATCH] fixed some DI issues. fixed episode list grid width --- NzbDrone.Core/CentralDispatch.cs | 1 + NzbDrone.Core/Providers/IRssSyncProvider.cs | 8 ++++++++ NzbDrone.Web/Views/Series/Details.aspx | 6 +++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/NzbDrone.Core/CentralDispatch.cs b/NzbDrone.Core/CentralDispatch.cs index 0d6fecf9d..c52648ca9 100644 --- a/NzbDrone.Core/CentralDispatch.cs +++ b/NzbDrone.Core/CentralDispatch.cs @@ -57,6 +57,7 @@ public static void BindKernel() dbProvider.Log = new NlogWriter(); _kernel.Bind().To().InSingletonScope(); + _kernel.Bind().To().InSingletonScope(); _kernel.Bind().To(); _kernel.Bind().To(); _kernel.Bind().To(); diff --git a/NzbDrone.Core/Providers/IRssSyncProvider.cs b/NzbDrone.Core/Providers/IRssSyncProvider.cs index aa033924f..448807815 100644 --- a/NzbDrone.Core/Providers/IRssSyncProvider.cs +++ b/NzbDrone.Core/Providers/IRssSyncProvider.cs @@ -9,4 +9,12 @@ public interface IRssSyncProvider { void Begin(); } + + class RssSyncProvider : IRssSyncProvider + { + public void Begin() + { + + } + } } diff --git a/NzbDrone.Web/Views/Series/Details.aspx b/NzbDrone.Web/Views/Series/Details.aspx index 7c96fe1da..662c4778a 100644 --- a/NzbDrone.Web/Views/Series/Details.aspx +++ b/NzbDrone.Web/Views/Series/Details.aspx @@ -66,9 +66,9 @@ .HtmlAttributes(new { style = "text-align:center" }); columns.Bound(c => c.EpisodeNumber).Width(10).Title("Episode"); - columns.Bound(c => c.Title).Title("Title"); - columns.Bound(c => c.AirDate).Format("{0:d}").Width(0); - columns.Bound(c => c.Quality); + columns.Bound(c => c.Title).Title("Title").Width(300); + columns.Bound(c => c.AirDate).Format("{0:d}").Width(10); + columns.Bound(c => c.Quality).Width(10); columns.Bound(c => c.Path); }) //.DetailView(detailView => detailView.Template(e => Html.RenderPartial("EpisodeDetail", e)))