diff --git a/NzbDrone.Web/Controllers/SeriesController.cs b/NzbDrone.Web/Controllers/SeriesController.cs index d82d7898f..b539b8f06 100644 --- a/NzbDrone.Web/Controllers/SeriesController.cs +++ b/NzbDrone.Web/Controllers/SeriesController.cs @@ -39,10 +39,15 @@ namespace NzbDrone.Web.Controllers public ActionResult Index() { - var series = GetSeriesModels(_seriesProvider.GetAllSeriesWithEpisodeCount()); - var serialized = new JavaScriptSerializer().Serialize(series); + return View(); + } - return View((object)serialized); + [HttpGet] + public ActionResult Series() + { + var series = GetSeriesModels(_seriesProvider.GetAllSeriesWithEpisodeCount()); + + return Json(new { aaData = series }, JsonRequestBehavior.AllowGet); } public ActionResult Edit(int seriesId) diff --git a/NzbDrone.Web/Views/Series/Index.cshtml b/NzbDrone.Web/Views/Series/Index.cshtml index 0aba91172..22b6ab23a 100644 --- a/NzbDrone.Web/Views/Series/Index.cshtml +++ b/NzbDrone.Web/Views/Series/Index.cshtml @@ -1,5 +1,4 @@ @using NzbDrone.Web.Helpers -@model string @{ViewBag.Title = "NzbDrone";} @section HeaderContent @@ -76,9 +75,7 @@