From 706ea744b9692e8664a84f53f6f5890b9b5d7871 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Thu, 10 Nov 2011 08:22:52 -0800 Subject: [PATCH] Change from rebind() to ajaxRequest() for reloading the History grid, which keeps page and sort order. --- NzbDrone.Web/Views/History/Index.cshtml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/NzbDrone.Web/Views/History/Index.cshtml b/NzbDrone.Web/Views/History/Index.cshtml index 2b8bd4595..2cf61af03 100644 --- a/NzbDrone.Web/Views/History/Index.cshtml +++ b/NzbDrone.Web/Views/History/Index.cshtml @@ -51,6 +51,8 @@ History c => c.PageSize(20).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious)) .Render();} + + } @@ -60,8 +62,7 @@ History function reloadHistoryGrid() { var grid = $('#history').data('tGrid'); - grid.rebind(); - grid.sort("Date-desc"); + grid.ajaxRequest(); } function deleteHistoryRow(historyId) {