From 253d0919e01f1f7240f93b4847d09b224c141ca7 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Wed, 26 Sep 2012 08:51:02 -0700 Subject: [PATCH] Grid error messages #ND-71 fixed. New: Error messages for empty grids match the content --- NzbDrone.Web/Views/History/Index.cshtml | 6 +++++- NzbDrone.Web/Views/Missing/Index.cshtml | 1 + NzbDrone.Web/Views/SearchHistory/Details.cshtml | 3 ++- NzbDrone.Web/Views/SearchHistory/Index.cshtml | 3 ++- NzbDrone.Web/Views/Series/Index.cshtml | 3 +++ 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/NzbDrone.Web/Views/History/Index.cshtml b/NzbDrone.Web/Views/History/Index.cshtml index 2890e31b0..6e5d657c5 100644 --- a/NzbDrone.Web/Views/History/Index.cshtml +++ b/NzbDrone.Web/Views/History/Index.cshtml @@ -122,7 +122,11 @@ } } //Details ], - "aaSorting": [[5, 'desc']] + "aaSorting": [[5, 'desc']], + "oLanguage": { + "sEmptyTable": "Nothing has been downloaded, or results have been purged", + "sZeroRecords": "No items match the filter" + } }).fnSetFilteringDelay(500); }); diff --git a/NzbDrone.Web/Views/Missing/Index.cshtml b/NzbDrone.Web/Views/Missing/Index.cshtml index 4af88a37e..985fe2575 100644 --- a/NzbDrone.Web/Views/Missing/Index.cshtml +++ b/NzbDrone.Web/Views/Missing/Index.cshtml @@ -31,6 +31,7 @@ .AddColumn(new Column().DataProperty("EpisodeId").Width("40px").Sortable(false).RenderFunction("return actions(row);")) .AddColumn(new Column().DataProperty("Details").Sortable(false).Visible(false).RenderFunction("return details(row);")) .AddSorting(3, SortDirection.Desc) + .Language(new Language().EmptyTable("No missing episodes found").ZeroRecords("No missing episodes match the filter")) )