From ba0217274bb0dc41addc3f282cf71e8515aaced9 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Fri, 19 Oct 2012 08:07:28 -0700 Subject: [PATCH] Fixed search history icons --- NzbDrone.Web/Views/SearchHistory/Details.cshtml | 5 +++-- NzbDrone.Web/Views/SearchHistory/Index.cshtml | 3 ++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/NzbDrone.Web/Views/SearchHistory/Details.cshtml b/NzbDrone.Web/Views/SearchHistory/Details.cshtml index f8529e858..01bf9674d 100644 --- a/NzbDrone.Web/Views/SearchHistory/Details.cshtml +++ b/NzbDrone.Web/Views/SearchHistory/Details.cshtml @@ -17,7 +17,8 @@ .ChangePageLength(false) .AddColumn(new Column().Image("/Content/Images/Indexers/{Indexer}.png", new { alt = "{Indexer}", title = "{Indexer}" }, "{Indexer}").Sortable(false).Title("").Width("20px")) .AddColumn(new Column().DataProperty("ReportTitle").Title("Report Title")) - .AddColumn(new Column().Image("/Content/Images/{Success}.png", new { alt = "{Success}", title = "{Success}", @class = "gridImage" }, "{Success}").Title("Successful").Width("100px")) + .AddColumn(new Column().DataProperty("Success").Title("Successful").Width("100px")) + //.AddColumn(new Column().Image("/Content/Images/{Success}.png", new { alt = "{Success}", title = "{Success}", @class = "gridImage" }, "{Success}").Title("Successful").Width("100px")) .AddColumn(new Column().DisplayAndSort("Quality", "QualityInt").Title("Quality").Width("80px")) .AddColumn(new Column().DataProperty("SearchError").Title("Error")) .AddColumn(new Column().DataProperty("return actionColumn(source, type, val);", true).Sortable(false).Searchable(false)) @@ -37,7 +38,7 @@ function actionColumn(source, type, val) { if (type === 'display' || type === 'filter') { - return 'Force'; + return ''; } // 'sort' and 'type' both just use the raw data return ''; diff --git a/NzbDrone.Web/Views/SearchHistory/Index.cshtml b/NzbDrone.Web/Views/SearchHistory/Index.cshtml index e77f6a95a..341ab1502 100644 --- a/NzbDrone.Web/Views/SearchHistory/Index.cshtml +++ b/NzbDrone.Web/Views/SearchHistory/Index.cshtml @@ -16,7 +16,8 @@ .AddColumn(new Column().DataProperty("DisplayName").Link("SearchHistory/Details?searchId={Id}", "{DisplayName}", null).Title("Name")) .AddColumn(new Column().DataProperty("SearchTime").Title("Time").Width("170px")) .AddColumn(new Column().DataProperty("ReportCount").Title("Reports Found").Width("140px")) - .AddColumn(new Column().Image("/Content/Images/{Successful}.png", new { alt = "{Successful}", title = "{Successful}", @class = "gridImage" }, "{Successful}").Title("Successful").Width("110px")) + .AddColumn(new Column().DataProperty("Successful").Title("Successful").Width("110px")) + //.AddColumn(new Column().Image("/Content/Images/{Successful}.png", new { alt = "{Successful}", title = "{Successful}", @class = "gridImage" }, "{Successful}").Title("Successful").Width("110px")) .AddSorting(1, SortDirection.Desc) .Language(new Language().EmptyTable("No search results available").ZeroRecords("No results match the filter"))) }