diff --git a/dashboard-ui/itembynamedetails.html b/dashboard-ui/itembynamedetails.html index 27f91afc33..dcd240994d 100644 --- a/dashboard-ui/itembynamedetails.html +++ b/dashboard-ui/itembynamedetails.html @@ -27,6 +27,8 @@ + +

In Your Library

diff --git a/dashboard-ui/moviepeople.html b/dashboard-ui/moviepeople.html index bd43d93dde..c350023816 100644 --- a/dashboard-ui/moviepeople.html +++ b/dashboard-ui/moviepeople.html @@ -62,6 +62,22 @@ +
+ + Person Types: + + + + + + + + + + + + +
diff --git a/dashboard-ui/scripts/moviepeople.js b/dashboard-ui/scripts/moviepeople.js index 9af503a1e5..f0e1c018a4 100644 --- a/dashboard-ui/scripts/moviepeople.js +++ b/dashboard-ui/scripts/moviepeople.js @@ -8,6 +8,7 @@ IncludeItemTypes: "Movie", Recursive: true, Fields: "PrimaryImageAspectRatio,ItemCounts,DateCreated,UserData", + PersonTypes: "", Limit: LibraryBrowser.getDetaultPageSize(), StartIndex: 0 }; @@ -80,6 +81,22 @@ reloadItems(page); }); + $('.chkPersonTypeFilter', this).on('change', function () { + + var filterName = this.getAttribute('data-filter'); + var filters = query.PersonTypes || ""; + + filters = (',' + filters).replace(',' + filterName, '').substring(1); + + if (this.checked) { + filters = filters ? (filters + ',' + filterName) : filterName; + } + + query.PersonTypes = filters; + + reloadItems(page); + }); + }).on('pagebeforeshow', "#moviePeoplePage", function () { reloadItems(this); diff --git a/dashboard-ui/scripts/tvpeople.js b/dashboard-ui/scripts/tvpeople.js index e70589569f..4f7b2c8793 100644 --- a/dashboard-ui/scripts/tvpeople.js +++ b/dashboard-ui/scripts/tvpeople.js @@ -8,6 +8,7 @@ IncludeItemTypes: "Series", Recursive: true, Fields: "PrimaryImageAspectRatio,ItemCounts,DateCreated,UserData", + PersonTypes: "", Limit: LibraryBrowser.getDetaultPageSize(), StartIndex: 0 }; @@ -80,6 +81,22 @@ reloadItems(page); }); + $('.chkPersonTypeFilter', this).on('change', function () { + + var filterName = this.getAttribute('data-filter'); + var filters = query.PersonTypes || ""; + + filters = (',' + filters).replace(',' + filterName, '').substring(1); + + if (this.checked) { + filters = filters ? (filters + ',' + filterName) : filterName; + } + + query.PersonTypes = filters; + + reloadItems(page); + }); + }).on('pagebeforeshow', "#tvPeoplePage", function () { reloadItems(this); diff --git a/dashboard-ui/tvpeople.html b/dashboard-ui/tvpeople.html index bd0b57e6ec..c8bdc805eb 100644 --- a/dashboard-ui/tvpeople.html +++ b/dashboard-ui/tvpeople.html @@ -61,6 +61,16 @@ +
+ + Person Types: + + + + + + +