From a11dc2d204de8572868db51b598c283682f12c5f Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 6 Aug 2012 11:49:44 -0700 Subject: [PATCH] Purge has been fixed for history --- NzbDrone.Web/Controllers/HistoryController.cs | 28 ------------------- NzbDrone.Web/Views/History/Index.cshtml | 4 +-- 2 files changed, 2 insertions(+), 30 deletions(-) diff --git a/NzbDrone.Web/Controllers/HistoryController.cs b/NzbDrone.Web/Controllers/HistoryController.cs index 4aee08267..be528a0ef 100644 --- a/NzbDrone.Web/Controllers/HistoryController.cs +++ b/NzbDrone.Web/Controllers/HistoryController.cs @@ -27,34 +27,6 @@ namespace NzbDrone.Web.Controllers return View(); } - //public JsonResult AjaxBinding() - //{ - // var history = _historyProvider.AllItemsWithRelationships().Select(h => new HistoryModel - // { - // HistoryId = h.HistoryId, - // SeriesId = h.SeriesId, - // EpisodeNumbering = string.Format("{0}x{1:00}", h.Episode.SeasonNumber, h.Episode.EpisodeNumber), - // EpisodeTitle = h.Episode.Title, - // EpisodeOverview = h.Episode.Overview, - // SeriesTitle = h.SeriesTitle, - // SeriesTitleSorter = SortHelper.SkipArticles(h.SeriesTitle), - // NzbTitle = h.NzbTitle, - // Quality = h.Quality.ToString(), - // IsProper = h.IsProper, - // Date = h.Date.ToString(), - // DateSorter = h.Date.ToString("MM/dd/yyyy h:mm:ss tt"), - // Indexer = h.Indexer, - // EpisodeId = h.EpisodeId, - // NzbInfoUrl = h.NzbInfoUrl - // }).OrderByDescending(h => h.Date).ToList(); - - // return Json(new - // { - // aaData = history - // }, - // JsonRequestBehavior.AllowGet); - //} - public ActionResult AjaxBinding(DataTablesPageRequest pageRequest) { var pageResult = _historyProvider.GetPagedItems(pageRequest); diff --git a/NzbDrone.Web/Views/History/Index.cshtml b/NzbDrone.Web/Views/History/Index.cshtml index 216969c13..f7bad9ef1 100644 --- a/NzbDrone.Web/Views/History/Index.cshtml +++ b/NzbDrone.Web/Views/History/Index.cshtml @@ -2,8 +2,8 @@ @{ViewBag.Title = "History";} @section ActionMenu{ }