mirror of
https://github.com/Radarr/Radarr
synced 2024-12-28 02:40:01 +00:00
Fixed: Search Results will sort by Time Descending instead of Ascending now.
This commit is contained in:
parent
20e99205f8
commit
ffdc0f22fb
1 changed files with 9 additions and 10 deletions
|
@ -1,4 +1,5 @@
|
||||||
@using DataTables.Mvc.Core
|
@using DataTables.Mvc.Core
|
||||||
|
@using SortDirection = DataTables.Mvc.Core.Enum.SortDirection
|
||||||
@model IEnumerable<NzbDrone.Web.Models.SearchHistoryModel>
|
@model IEnumerable<NzbDrone.Web.Models.SearchHistoryModel>
|
||||||
|
|
||||||
@{
|
@{
|
||||||
|
@ -9,14 +10,12 @@
|
||||||
|
|
||||||
@section Scripts
|
@section Scripts
|
||||||
{
|
{
|
||||||
@(
|
@(Html.GridScriptForModel("#searchResultsGrid")
|
||||||
Html.GridScriptForModel("#searchResultsGrid")
|
|
||||||
.PageLength(20)
|
.PageLength(20)
|
||||||
.ChangePageLength(false)
|
.ChangePageLength(false)
|
||||||
.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().Image("/Content/Images/{Successful}.png", new { alt = "{Successful}", title = "{Successful}", @class = "gridImage" }, "{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, SortDirection.Desc))
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue