SearchHistory Successful columns now sort properly and use images.]

New: Delete images in grids now use the same image as Delete Series.
pull/2/head
Mark McDowall 13 years ago
parent 0ab0611173
commit bb9e4c88ce

@ -74,7 +74,7 @@
{ sWidth: 'auto', "mDataProp": "Title", "bSortable": false }, //Title { sWidth: 'auto', "mDataProp": "Title", "bSortable": false }, //Title
{ sWidth: '40px', "mDataProp": "Commands", "bSortable": false, "fnRender": function (row) { { sWidth: '40px', "mDataProp": "Commands", "bSortable": false, "fnRender": function (row) {
var promoteImage = "<img src=\"../../Content/Images/Promote.png\" alt=\"Promote\" title=\Promote to Active\" class=\"gridAction\" onclick=\"promoteMapping(this.parentNode.parentNode, " + row.aData["MappingId"] + ")\">"; var promoteImage = "<img src=\"../../Content/Images/Promote.png\" alt=\"Promote\" title=\Promote to Active\" class=\"gridAction\" onclick=\"promoteMapping(this.parentNode.parentNode, " + row.aData["MappingId"] + ")\">";
var deleteImage = "<img src=\"../../Content/Images/X.png\" alt=\"Delete\" title=\"Delete\" class=\"gridAction\" onclick=\"deleteMapping(this.parentNode.parentNode, " + row.aData["MappingId"] + ")\">"; var deleteImage = "<img src=\"../../Content/Images/close.png\" alt=\"Delete\" title=\"Delete\" class=\"gridAction\" onclick=\"deleteMapping(this.parentNode.parentNode, " + row.aData["MappingId"] + ")\">";
return promoteImage + deleteImage; return promoteImage + deleteImage;
} }

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

@ -157,6 +157,7 @@
<Content Include="Content\Images\AirsToday.png" /> <Content Include="Content\Images\AirsToday.png" />
<Content Include="Content\Images\background.jpg" /> <Content Include="Content\Images\background.jpg" />
<Content Include="Content\Images\blue.png" /> <Content Include="Content\Images\blue.png" />
<Content Include="Content\Images\False.png" />
<Content Include="Content\Images\Gear.png" /> <Content Include="Content\Images\Gear.png" />
<Content Include="Content\Images\green.png" /> <Content Include="Content\Images\green.png" />
<Content Include="Content\Images\Indexers\FileSharingTalk.png" /> <Content Include="Content\Images\Indexers\FileSharingTalk.png" />
@ -166,6 +167,7 @@
<Content Include="Content\Images\Indexers\Nzbs.org.png" /> <Content Include="Content\Images\Indexers\Nzbs.org.png" />
<Content Include="Content\Images\Indexers\WomblesIndex.png" /> <Content Include="Content\Images\Indexers\WomblesIndex.png" />
<Content Include="Content\Images\logo.png" /> <Content Include="Content\Images\logo.png" />
<Content Include="Content\Images\logo_small.png" />
<Content Include="Content\Images\pause.png" /> <Content Include="Content\Images\pause.png" />
<Content Include="Content\Images\play.png" /> <Content Include="Content\Images\play.png" />
<Content Include="Content\Images\red.png" /> <Content Include="Content\Images\red.png" />
@ -173,6 +175,7 @@
<Content Include="Content\Images\settings.png" /> <Content Include="Content\Images\settings.png" />
<Content Include="Content\Images\stop.png" /> <Content Include="Content\Images\stop.png" />
<Content Include="Content\Images\thetvdb.png" /> <Content Include="Content\Images\thetvdb.png" />
<Content Include="Content\Images\True.png" />
<Content Include="Content\Images\yellow.png" /> <Content Include="Content\Images\yellow.png" />
<Content Include="Content\IndexerSettings.css" /> <Content Include="Content\IndexerSettings.css" />
<Content Include="Content\jQueryUI\images\ui-bg_diagonals-thick_30_a32d00_40x40.png" /> <Content Include="Content\jQueryUI\images\ui-bg_diagonals-thick_30_a32d00_40x40.png" />
@ -286,7 +289,6 @@
<Content Include="Content\Images\Indexers\Unknown.png" /> <Content Include="Content\Images\Indexers\Unknown.png" />
<Content Include="Content\Images\Plus.png" /> <Content Include="Content\Images\Plus.png" />
<Content Include="Content\Images\VideoFolder.png" /> <Content Include="Content\Images\VideoFolder.png" />
<Content Include="Content\Images\X.png" />
<Content Include="Content\Settings.css" /> <Content Include="Content\Settings.css" />
<Content Include="Content\NzbDrone.css" /> <Content Include="Content\NzbDrone.css" />
<Content Include="Content\Images\XbmcNotification.png" /> <Content Include="Content\Images\XbmcNotification.png" />

@ -90,7 +90,7 @@
} }
}, //Date }, //Date
{ sWidth: '40px', "mDataProp": "HistoryId", "bSortable": false, "fnRender": function (row) { { sWidth: '40px', "mDataProp": "HistoryId", "bSortable": false, "fnRender": function (row) {
var deleteImage = "<img src=\"../../Content/Images/X.png\" alt=\"Delete\" title=\"Delete from History\" class=\"gridAction\" onclick=\"deleteHistory(this.parentNode.parentNode, " + row.aData["HistoryId"] + ")\">"; var deleteImage = "<img src=\"../../Content/Images/close.png\" alt=\"Delete\" title=\"Delete from History\" class=\"gridAction\" onclick=\"deleteHistory(this.parentNode.parentNode, " + row.aData["HistoryId"] + ")\">";
var redownloadImage = "<img src=\"../../Content/Images/redownload.png\" alt=\"Redownload\" title=\Redownload Episode\" class=\"gridAction\" onclick=\"redownloadHistory(this.parentNode.parentNode, " + row.aData["HistoryId"] + ", " + row.aData["EpisodeId"] + ")\">"; var redownloadImage = "<img src=\"../../Content/Images/redownload.png\" alt=\"Redownload\" title=\Redownload Episode\" class=\"gridAction\" onclick=\"redownloadHistory(this.parentNode.parentNode, " + row.aData["HistoryId"] + ", " + row.aData["EpisodeId"] + ")\">";
return deleteImage + redownloadImage; return deleteImage + redownloadImage;

@ -17,7 +17,7 @@
.ChangePageLength(false) .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().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().DataProperty("ReportTitle").Title("Report Title"))
.AddColumn(new Column().DataProperty("Success").Title("Successful").Width("120px")) .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().DisplayAndSort("Quality", "QualityInt").Title("Quality").Width("80px"))
.AddColumn(new Column().DataProperty("SearchError").Title("Error")) .AddColumn(new Column().DataProperty("SearchError").Title("Error"))
.AddColumn(new Column().DataProperty("return actionColumn(source, type, val);", true).Sortable(false).Searchable(false)) .AddColumn(new Column().DataProperty("return actionColumn(source, type, val);", true).Sortable(false).Searchable(false))

@ -16,7 +16,7 @@
.AddColumn(new Column().DataProperty("DisplayName").Link("SearchHistory/Details?searchId={Id}", "{DisplayName}", null).Title("Name")) .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("SearchTime").Title("Time").Width("170px"))
.AddColumn(new Column().DataProperty("ReportCount").Title("Reports Found").Width("140px")) .AddColumn(new Column().DataProperty("ReportCount").Title("Reports Found").Width("140px"))
.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) .AddSorting(1)
) )
} }

@ -14,7 +14,7 @@
@Model.Name @Model.Name
</span> </span>
<a href="#" id="@Model.Id" class="deleteProvider" onclick="deleteProvider('@(Model.Id)'); return false;"> <a href="#" id="@Model.Id" class="deleteProvider" onclick="deleteProvider('@(Model.Id)'); return false;">
<img src="../../Content/Images/X.png" alt="Delete" width="22px" height="22px" /></a> <img src="../../Content/Images/close.png" alt="Delete" width="22px" height="22px" /></a>
</div> </div>
<div class="providerOptions"> <div class="providerOptions">
@Html.Label("Enabled") @Html.Label("Enabled")

@ -12,7 +12,7 @@
<span class="titleText" id="title_@(Model.QualityProfileId)"> <span class="titleText" id="title_@(Model.QualityProfileId)">
@Model.Name @Model.Name
</span><a href="#" id="@Model.QualityProfileId" class="deleteProfile" onclick=" deleteProfile('@(Model.QualityProfileId)'); return false;"> </span><a href="#" id="@Model.QualityProfileId" class="deleteProfile" onclick=" deleteProfile('@(Model.QualityProfileId)'); return false;">
<img src="../../Content/Images/X.png" alt="Delete" width="22px" height="22px" /></a> <img src="../../Content/Images/close.png" alt="Delete" width="22px" height="22px" /></a>
</div> </div>
<div class="profileOptions"> <div class="profileOptions">
@Html.LabelFor(x => x.Name) @Html.LabelFor(x => x.Name)

Loading…
Cancel
Save