From 8fa145b2c3e947e19ad835ae4c37f8dcf7823e19 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Sat, 14 Apr 2012 14:44:02 -0700 Subject: [PATCH] New: Indexer name is displayed on mouse over of image (History) New: Search by indexer name (History) --- NzbDrone.Core.Test/NzbDrone.Core.Test.csproj | 1 + NzbDrone.Web/Views/History/Index.cshtml | 13 ++++++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj b/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj index 87e673ede..7f5644d93 100644 --- a/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj +++ b/NzbDrone.Core.Test/NzbDrone.Core.Test.csproj @@ -220,6 +220,7 @@ Always + Designer Always diff --git a/NzbDrone.Web/Views/History/Index.cshtml b/NzbDrone.Web/Views/History/Index.cshtml index bdfc46c37..2b7e46ae6 100644 --- a/NzbDrone.Web/Views/History/Index.cshtml +++ b/NzbDrone.Web/Views/History/Index.cshtml @@ -57,8 +57,14 @@ "iDisplayLength": 20, "sPaginationType": "four_button", "aoColumns": [ - { sWidth: '20px', "bSortable": false, "mDataProp": "Indexer", "fnRender": function (row) { - return " + row.aData["; + { + sWidth: '20px', "bSortable": false, "mDataProp": function (source, type, val) { + // 'display' and 'filter' use the image + if (type === 'display' || type === 'filter') { + return "" + source["Indexer"] + ""; + } + // 'sort' and 'type' both just use the raw data + return source["Indexer"]; } }, //Image { sWidth: 'auto', "mDataProp": function (source, type, val) { @@ -97,7 +103,8 @@ "fnRender": function(row) { var result = "Overview: " + row.aData["EpisodeOverview"] + "
" + "NZB Title: " + row.aData["NzbTitle"] + "
" + - "Proper: " + row.aData["IsProper"]; + "Proper: " + row.aData["IsProper"] + "
" + + "Indexer: " + row.aData["Indexer"]; return result; } } //Details