mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
Merge pull request #436 from fhriley/movie_sort_year
Always have last sort of movies be by production year
This commit is contained in:
commit
1dec316dc2
@ -140,31 +140,31 @@ define(["loading", "layoutManager", "userSettings", "events", "libraryBrowser",
|
|||||||
libraryBrowser.showSortMenu({
|
libraryBrowser.showSortMenu({
|
||||||
items: [{
|
items: [{
|
||||||
name: Globalize.translate("OptionNameSort"),
|
name: Globalize.translate("OptionNameSort"),
|
||||||
id: "SortName"
|
id: "SortName,ProductionYear"
|
||||||
}, {
|
}, {
|
||||||
name: Globalize.translate("OptionImdbRating"),
|
name: Globalize.translate("OptionImdbRating"),
|
||||||
id: "CommunityRating,SortName"
|
id: "CommunityRating,SortName,ProductionYear"
|
||||||
}, {
|
}, {
|
||||||
name: Globalize.translate("OptionCriticRating"),
|
name: Globalize.translate("OptionCriticRating"),
|
||||||
id: "CriticRating,SortName"
|
id: "CriticRating,SortName,ProductionYear"
|
||||||
}, {
|
}, {
|
||||||
name: Globalize.translate("OptionDateAdded"),
|
name: Globalize.translate("OptionDateAdded"),
|
||||||
id: "DateCreated,SortName"
|
id: "DateCreated,SortName,ProductionYear"
|
||||||
}, {
|
}, {
|
||||||
name: Globalize.translate("OptionDatePlayed"),
|
name: Globalize.translate("OptionDatePlayed"),
|
||||||
id: "DatePlayed,SortName"
|
id: "DatePlayed,SortName,ProductionYear"
|
||||||
}, {
|
}, {
|
||||||
name: Globalize.translate("OptionParentalRating"),
|
name: Globalize.translate("OptionParentalRating"),
|
||||||
id: "OfficialRating,SortName"
|
id: "OfficialRating,SortName,ProductionYear"
|
||||||
}, {
|
}, {
|
||||||
name: Globalize.translate("OptionPlayCount"),
|
name: Globalize.translate("OptionPlayCount"),
|
||||||
id: "PlayCount,SortName"
|
id: "PlayCount,SortName,ProductionYear"
|
||||||
}, {
|
}, {
|
||||||
name: Globalize.translate("OptionReleaseDate"),
|
name: Globalize.translate("OptionReleaseDate"),
|
||||||
id: "PremiereDate,SortName"
|
id: "PremiereDate,SortName,ProductionYear"
|
||||||
}, {
|
}, {
|
||||||
name: Globalize.translate("OptionRuntime"),
|
name: Globalize.translate("OptionRuntime"),
|
||||||
id: "Runtime,SortName"
|
id: "Runtime,SortName,ProductionYear"
|
||||||
}],
|
}],
|
||||||
callback: function() {
|
callback: function() {
|
||||||
query.StartIndex = 0, userSettings.saveQuerySettings(savedQueryKey, query), itemsContainer.refreshItems()
|
query.StartIndex = 0, userSettings.saveQuerySettings(savedQueryKey, query), itemsContainer.refreshItems()
|
||||||
@ -189,7 +189,7 @@ define(["loading", "layoutManager", "userSettings", "events", "libraryBrowser",
|
|||||||
savedQueryKey = params.topParentId + "-" + options.mode,
|
savedQueryKey = params.topParentId + "-" + options.mode,
|
||||||
savedViewKey = savedQueryKey + "-view",
|
savedViewKey = savedQueryKey + "-view",
|
||||||
query = {
|
query = {
|
||||||
SortBy: "SortName",
|
SortBy: "SortName,ProductionYear",
|
||||||
SortOrder: "Ascending",
|
SortOrder: "Ascending",
|
||||||
IncludeItemTypes: "Movie",
|
IncludeItemTypes: "Movie",
|
||||||
Recursive: !0,
|
Recursive: !0,
|
||||||
|
Loading…
Reference in New Issue
Block a user